You could also paramaterise the redirect page in a custom field. Add a new custom field called redirect_url and give it the address, then change your template to:
<?php
$redir_url = get_post_meta($post->ID, ‘redirect_url’, true);
wp_redirect($redir_url);
exit();
?>
This way, you don’t have to create a new template for each redirect you need to do.
I’ve got this problem where I’ve put a whole stack of pages under a sub-page, but there are sites out there linking to my original page url. I don’t know how to fix it apart from redirecting a whole bunch of old urls to the new page address any ideas?
The page was at
https://www.mywebsite.com/page/
and now sits at
https://www.mywebsite.com/parent-page/page/
It wouldn’t worry me if the page hierarchy was left out of the URL altogether…
Any ideas would be greatly appreciated.
Cheers,
Damo