# URL rewrite for domain change in permalinks

**URL:** <https://meta.discourse.org/t/url-rewrite-for-domain-change-in-permalinks/58507>\
**Category:** Product Support\
**Created:** [06.Март.2017 23:45:37 UTC](https://meta.discourse.org/t/url-rewrite-for-domain-change-in-permalinks/58507 "2017-03-06T23:45:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![modius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/modius/32/108600_2.png) [@modius](https://meta.discourse.org/u/modius)\
**Post date:** [06.Март.2017 23:45:37 UTC](https://meta.discourse.org/t/url-rewrite-for-domain-change-in-permalinks/58507/1 "2017-03-06T23:45:37Z")

</div>

I have a forum URL change from `foo.discourse.com` to `bar.discourse.com`.

If I have both domains pointing at the Discourse server is it possible to use Permalinks to redirect all foo domain traffic to the bar domain? Or do I have to take care of this elsewhere?

**For Example**

```plaintext
foo.discourse.com/blah/post --> bar.discourse.com/blah/post

```

---

_[View the full topic](https://meta.discourse.org/t/url-rewrite-for-domain-change-in-permalinks/58507)._
