Redirect WordPress Page to Another Website

WordPress

You would find this useful if you want to redirect one or more of your WordPress page(s) to another website. For example, you want a link on your navigation that will fetch your visitors to your Flickr or to your forum which is located at another address.

There are two ways of doing this, using a redirect php file or by just using a meta tag.

The Use of Meta Tag

  1. Create a WordPress page
  2. In the page, insert this meta tag:
    <meta http-equiv="refresh" content="0; url=http://example.com" />
  3. Substitute “0” which the number of seconds you want to delay before redirecting. Substitute “http://example.com” with the URL of the website you want to redirect to

The Use of redirect.php

  1. Download and upload the redirect.php file by cavemonkey50 to your theme’s directory (/wp-content/themes/theme name/)
  2. Create a WordPress page
  3. Select “Redirect” as your page template.
  4. Add a custom field with the key “redirect” and the value being the URL of your targeted website

I personally prefer the second method, as using meta tag seems to delay the redirecting more.

#page#redirect#WordPress

Comments

  1. Ståle Gismervik - June 20, 2008 @ 4:53 pm

    Thank you!

    I used redirect.php and it was exactly what I was looking for.

    Reply

Leave a Reply

Your email address will not be published / Required fields are marked *