# Main domain used as hostname instead of DISCOURSE\_HOSTNAME for emoji path

**URL:** <https://meta.discourse.org/t/main-domain-used-as-hostname-instead-of-discourse-hostname-for-emoji-path/69979>\
**Category:** Self-hosting\
**Created:** [Setembro 13, 2017, 3:50pm UTC](https://meta.discourse.org/t/main-domain-used-as-hostname-instead-of-discourse-hostname-for-emoji-path/69979 "2017-09-13T15:50:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [Setembro 13, 2017, 4:15pm UTC](https://meta.discourse.org/t/main-domain-used-as-hostname-instead-of-discourse-hostname-for-emoji-path/69979/2 "2017-09-13T16:15:28Z")

</div>

You will need to do a remap

```
# ssh into your server
cd /var/discourse
./launcher enter app
discourse remap "bar.com" "foo.bar.com"

```

---

_[View the full topic](https://meta.discourse.org/t/main-domain-used-as-hostname-instead-of-discourse-hostname-for-emoji-path/69979)._
