# Twee domeinen, voorwaardelijke doorsturing

**URL:** <https://meta.discourse.org/t/two-domains-conditional-redirect/168597>\
**Category:** Product Support\
**Created:** [28 oktober 2020 om 23:52 UTC](https://meta.discourse.org/t/two-domains-conditional-redirect/168597 "2020-10-28T23:52:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tyler.clark](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tyler.clark/32/120645_2.png) [@tyler.clark](https://meta.discourse.org/u/tyler.clark)\
**Post date:** [29 oktober 2020 om 01:54 UTC](https://meta.discourse.org/t/two-domains-conditional-redirect/168597/3 "2020-10-29T01:54:36Z")

</div>

So you’re saying there isn’t a simple way to do the following?

(1) go to `domain1.com` and it’s running discourse (with main hostname `domain1.com` - works)  
(2) go to `domain2.com` and it goes to `domain1.com/c/example/18` (what we also want)  
(3) go to `domain2.com/t/topic/1` and it shows either `domain1.com/t/topic/1` or `domain2.com/t/topic/1` (current works)

we are transitioning and want only the root of `domain2.com` to redirect to a category. is there any sort of URL rewriting that can do this?

---

_[View the full topic](https://meta.discourse.org/t/two-domains-conditional-redirect/168597)._
