WP Avertere

plugin banner

Set up and manage an HTTP 301/302 Redirect from the URL of any post type to another URL, either on your site or externally.

Author:Gary Gale (profile at wordpress.org)
WordPress version required:3.4
WordPress version tested:3.4.2
Plugin version:1.1.0
Added to WordPress repository:23-07-2012
Last updated:08-11-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:http://www.vicchi.org/codeage/wp-avertere/
Total downloads:2 951
Active installs:40+
plugin download
Click to start download

This plugin allows you to easily set up redirections from the URL of any post, page or other post type on your WordPress site to another URL, either on your site or external to your site. Redirections can either be permanent (HTTP 301) or temporary (HTTP 302) and can easily be changed or deleted entirely.

Settings and options include:

  1. The URL you want to redirect to.
  2. The type of redirection, permanent or temporary
  3. Validation of the redirect URL to ensure it is well formed.

In addition to setting up a redirect, the plugin replaces the original post’s or page’s permalink with the redirected permalink or external URL; when you hover your mouse pointer over a redirected permalink you will see the new permalink or external URL not the original.

Once installed and activated, the plugin adds a Redirect This Post/Page/etc meta box to the admin Edit Post/Page. Simply create a new post, or edit an existing one, add the URL you want to redirect to (copying and pasting is a good idea here to ensure there’s no typing errors), choose whether the redirection is permanent or temporary, click on the Check URL button to ensure your URL is well formed and save the post. You’re done.

While the main use of the plugin is to redirect posts and pages, you can also use it to:

  1. Convert a post to a page; useful for when the post needs to be kept updated regularly and is more suited to be a page on your site.
  2. Add a menu bar link to an external site; you can create a new blank page as a menu bar link and then redirect that page to the external URL with no need to edit any code in your theme’s functions.php.
  3. Create a shortcut category or tag archive link; you can create a new blank page, such as /plugins and then redirect that page to /tags/plugins.

Filter Support And Usage

WP Avertere supports a single filter, wp_avertere_protocols that allows you to change the set of acceptable URL protocols that WordPress and the plugin permits.

Example: Add support for GitHub repositories to the plugin.

add_filter ('wp_avertere_protocols', 'add_github_protocol');

function add_github_protocol ($protocols) {
    // protocols = array ('name', 'name', ...)
    $protocols[] = 'git';

    return $protocols;