# Redirecting internal links via routes

**URL:** <https://meta.discourse.org/t/redirecting-internal-links-via-routes/236019>\
**Category:** Product Support\
**Created:** [August 12, 2022, 6:19pm UTC](https://meta.discourse.org/t/redirecting-internal-links-via-routes/236019 "2022-08-12T18:19:54Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![attj](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@attj](https://meta.discourse.org/u/attj)\
**Post date:** [August 17, 2022, 1:05pm UTC](https://meta.discourse.org/t/redirecting-internal-links-via-routes/236019/7 "2022-08-17T13:05:31Z")

</div>

My website creates a one to one correspondence with research papers in a preprint server and tags. My users are used to visiting the website [preprint.com/123/456](http://preprint.com/123/456). For a paper with id 123-456. This corresponds to [mywebsite.com](http://mywebsite.com/tag/123-456), hence I have a route that redirects [mywebsite.com](http://mywebsite.com/123/456) to [mywebsite.com](http://mywebsite.com/tag/123-456).

The idea is that users can hot-swap [preprint.com](http://preprint.com) with [mywebsite.com](http://mywebsite.com) and land on the exact paper’s page that they were browsing on the preprint server. This was working fine until someone gave an internal link [mywebsite.com](http://mywebsite.com/123/456) in a post and we realized that it is not redirecting and instead gives a 404. I am using Discourse for a very specific and targeted user base, hence, my usecase may sound strange.

---

_[View the full topic](https://meta.discourse.org/t/redirecting-internal-links-via-routes/236019)._
