# How to make a redirect URL in a Discourse install?

**URL:** <https://meta.discourse.org/t/how-to-make-a-redirect-url-in-a-discourse-install/40973>\
**Category:** Support\
**Created:** [2016年三月13日 19:27 UTC](https://meta.discourse.org/t/how-to-make-a-redirect-url-in-a-discourse-install/40973 "2016-03-13T19:27:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmccord](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jmccord/32/121915_2.png) [@jmccord](https://meta.discourse.org/u/jmccord)\
**Post date:** [2016年三月13日 19:27 UTC](https://meta.discourse.org/t/how-to-make-a-redirect-url-in-a-discourse-install/40973/1 "2016-03-13T19:27:53Z")

</div>

This is my first install of a non-PHP based application. I am completely unfamiliar with RoR. I’m having a little bit of trouble figuring out how to do this on my server, or even if it’s possible.

**Background:** I have a YouTube channel. Discourse is at the root of our domain. To link to our Facebook, Twitter, or anything else from an annotation in our YouTube channel, we can only link to our actual domain per YouTube’s restrictions.

On a PHP server, I would just drop facebook.php in the root of the server, link to it from the annotation ([domain.com/facebook.php](http://domain.com/facebook.php)), fill it with a 1 line redirect to our FaceBook page. How would I achieve this on a server where it is installed at the root level like that?

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2016年三月13日 20:51 UTC](https://meta.discourse.org/t/how-to-make-a-redirect-url-in-a-discourse-install/40973/2 "2016-03-13T20:51:20Z")

</div>

Wait what? If Discourse is at the root and you can only link to the root from YouTube you should be fine. I am not following this at all. Can you provide URL examples?

---

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [2016年三月13日 21:02 UTC](https://meta.discourse.org/t/how-to-make-a-redirect-url-in-a-discourse-install/40973/3 "2016-03-13T21:02:08Z")

</div>

You can set up redirects in `/admin/customize/permalinks`, simply use the `external URL` mode and enter the URL you want to link to.

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2016年三月13日 21:02 UTC](https://meta.discourse.org/t/how-to-make-a-redirect-url-in-a-discourse-install/40973/4 "2016-03-13T21:02:32Z")

</div>

You could use the Permalink feature.

 ![](https://global.discourse-cdn.com/meta/original/3X/5/4/548749c456fcd737d19588aacf02958cec19d48a.png)

Using facebook in the first textbox, external URL in the second, and [https://www.facebook.com](https://www.facebook.com) in the final textbox.

Ninja’d by @fefrei

---

<div class="post-metadata">

**Author:** ![jmccord](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jmccord/32/121915_2.png) [@jmccord](https://meta.discourse.org/u/jmccord)\
**Post date:** [2016年三月14日 00:58 UTC](https://meta.discourse.org/t/how-to-make-a-redirect-url-in-a-discourse-install/40973/5 "2016-03-14T00:58:32Z")

</div>

Excellent! Permalink feature is exactly what I was looking for. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2018年十二月27日 20:56 UTC](https://meta.discourse.org/t/how-to-make-a-redirect-url-in-a-discourse-install/40973/6 "2018-12-27T20:56:21Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2019年一月26日 21:02 UTC](https://meta.discourse.org/t/how-to-make-a-redirect-url-in-a-discourse-install/40973/7 "2019-01-26T21:02:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
