This is the simplest way to add a page redirection feature to your WordPress theme.
First, create a new theme file called redirect.php with the following contents:
Template Name: Redirect
header('Location: ' . get_the_content());
To create a new redirection page:
- New page, change the template to ‘Redirect’
- Switch to HTML editing mode and put the url in the content area.