Plugin / Safe Redirect Manager

10up

Description

Description

Easily and safely manage your site’s redirects the WordPress way. There are many redirect plugins available. Most of them store redirects in the options table or in custom tables. Most of them provide tons of unnecessary options. Some of them have serious performance implications (404 error logging). Safe Redirect Manager stores redirects as Custom Post Types. This makes your data portable and your website scalable. Safe Redirect Manager is built to handle enterprise level traffic and is used on major publishing websites. The plugin comes with only what you need following the WordPress mantra, decisions not options. Actions and filters make the plugin very extensible.

Fork the plugin on GitHub.

Configuration

There are no overarching settings for this plugin. To manage redirects, navigate to the administration panel (“Tools” > “Safe Redirect Manager”).

Each redirect contains a few fields that you can utilize:

“Redirect From”

This should be a path relative to the root of your WordPress installation. When someone visits your site with a path
that matches this one, a redirect will occur. If your site is located at http://example.com/wp/`` and you wanted to redirecthttp://example.com/wp/abouttohttp://example.com, your "Redirect From" would be/about`.

Clicking the “Enable Regex” checkbox allows you to use regular expressions in your path. There are many
great tutorials on regular expressions.

You can also use wildcards in your “Redirect From” paths. By adding an * at the end of a URL, your redirect will
match any request that starts with your “Redirect From”. Wildcards support replacements. This means if you have a
wildcard in your from path that matches a string, you can have that string replace a wildcard character in your
“Redirect To” path. For example, if your “Redirect From” is /test/*, your “Redirect To” is
http://google.com/*, and the requested path is /test/string, the user would be redirect to http://google.com/string.

“Redirect To”

This should be a path (i.e. /test) or a URL (i.e. http://example.com/wp/test). If a requested path matches
“Redirect From”, they will be redirected here. “Redirect To” supports wildcard and regular expression replacements.

“HTTP Status Code”

HTTP status codes are numbers that contain information about
a request (i.e. whether it was successful, unauthorized, not found, etc). You should almost always use either 302 (temporarily moved) or 301 (permanently moved).

Note:

  • Redirects are cached using the Transients API. Cache busts occur when redirects are added, updated, and deleted
    so you shouldn’t be serving stale redirects.
  • By default the plugin only allows at most 250 redirects to prevent performance issues. There is a filter
    srm_max_redirects that you can utilize to up this number.
  • “Redirect From” and requested paths are case insensitive by default.

Ratings

4.7
69 reviews

Rating breakdown

Details Information

Version

1.9.3

First Released

08 Jun, 2009

Total Downloads

644,588

Wordpress Version

3.1 or higher

Tested up to:

5.3

Require PHP Version:

-

Tags

There is no tag found

Contributors

Languages

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.