owen

This stupid little plugin for WordPress 1.5.1 redirects visitors to a different page when they attempt to read a specific post or static page.

To use it, add a custom field in the Advanced Editing panel named “redirect”. The value of the field should be the URL to redirect when that page is viewed.

The redirect only happens when the page is viewed by itself. So the post content will still appear on your home page and archives (if it’s a post and not a static page) but unless you have some crazy AJAX-driven comment form (cough) that appears when you click something on the home page (cough), you won’t receive any comments on that post.

So, uh, what is this thing for? Say you already have a gallery set up using Gallery or something similar and you want to include a link to it using the static page functionality of WordPress. Create a new page in WordPress using Write|Write Page in the admin panel, and add a custom field to that page as described above using the URL of your gallery.

The page will appear in your page list (wherever that is on your site, typically in your sidebar) and when a user clicks it (accesses the permalink in the address bar) they will be redirected to your gallery, wherever that happens to be.

This is an easy way to give permalinks to pages that are outside the control of WordPress and integrate them into your site structure.

Check out the download on the Redirectify page at RedAlt.