8Sep/091

How to forward a Wordpress Page to an external URL.

Since there is no option to do this in the page itself you have to use a page template.

1. Create a file called redirect_twitter.php with the text below and save it to your theme folder (/public_html/wp-content/themes/yancytheme/redirect_twitter.php).

<?php
/*
Template Name: Redirect Twitter
*/

header('Location: http://twitter.com/yancylent');
die();
?>

If you plan on making more redirects the file name starting in redirect will ensure they all stay together.

2. Create the page, and choose the 'Template Name'  Twitter Redirect.

3. Save, done, test, done.

*Note that if you change your theme you'll have to move the redirect page templates. I tried adding the templates to higher level folders but they aren't picked up, so this manual process is needed.

**Also, no messing with the .htaccess.