# 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:** 1

<div class="post-metadata">

**Author:** ![pacificmeister](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@pacificmeister](https://meta.discourse.org/u/pacificmeister)\
**Post date:** [28 oktober 2020 om 23:52 UTC](https://meta.discourse.org/t/two-domains-conditional-redirect/168597/1 "2020-10-28T23:52:35Z")

</div>

Dear Discourse experts!

We have been running a discourse forum (DOMAIN1) for 3 years. Now we want expand the discussion scope and add DOMAIN2. We succeeded getting them both active with letsencrypt thanks to [this post](https://meta.discourse.org/t/setting-up-let-s-encrypt-with-multiple-domains/56685). We will keep both domains active which worked after step 1 on this post. The second is redirected to the main domain name, which is good.

Part of the transition is to move all existing categories to a new top level category.

DOMAIN2 will become the main discourse domain, DOMAIN1 will remain linked so external links to posts still work.

Here is the question: How can we add a redirect if a “vanilla” DOMAIN1 is called (just the root URL, no path) to the new top level category URL? All other DOMAIN1 calls (with paths) should keep the existing path (no change, already works). Doing this will minimize confusion since everyone going to the DOMAIN1 will land in the category and everything will look similar as before.

Hope someone has a suggestions how add this conditional redirect with our double domain setup.

Thank you!  
Merten

---

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