Home Plugins wp avertere
WP Avertere logo

WP Avertere

by vicchi on WordPress.org

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.

(1)
Edit Post Redirect This Post meta box; well formed and valid URL.

Edit Post Redirect This Post meta box; well formed and valid URL.

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;
}
Active installations30+
Weekly downloads
10-23.08%
Version1.1.0
Last updated11/8/2012
WordPress version3.4
Tested up to3.4.2
Tags
301httpredirectredirectionwp-avertere