Use part of old url to redirect to new
-
We’ve just made a new website using WordPress.
In regard to this new site, there are some issues with old links.I would like to redirect these old links. Currently, they simply get the 404 page, but I would like to show them a page based on their link(url).
The old links were like so: example.com/exp/344
The number being a cabin. The old website used numbers, the new one uses the cabin name.However, I was wondering if it’s possible to redirect people to the correct page. Currently, our users are set up with this number as ID, so in the url, the author of cabin 344 is now: example.com/author/344
Under the author, their cabin is also shown.
So my question is, if it’s possible to redirect people, by changing part of the url?So when people enter the site using example.com/exp/344, it redirects to example.com/author/344
If so, anyone can give me an idea about, how this is done?
- The topic ‘Use part of old url to redirect to new’ is closed to new replies.