Redirect Editor plugin for WordPress
I was looking for a WordPress plugin to manage a list of post redirects, but what I found was a little over-engineered for my tastes. I just wanted a simple web-interface to something resembling an .htaccess file. So I built it. It’s called Redirect Editor, and it provides a single textbox to manage a list of redirects, one per line, consisting of a relative URL path to match and an absolute URL destination to redirect to, separated by a space, e.g.
/2012/09/old-post/ http://www.example.com/2012/09/new-post/
Blank lines and lines that start with # (hash) are ignored and can be used for spacing and comments.
Screenshot of the Redirect Editor interface
Instructions
- Download Redirect Editor v1.0 from the WordPress.org Plugin Directory (or from me here)
- Unzip the file and upload the folder
redirect-editorto yourwp-content/plugins/directory - Activate the plugin
- Go to Settings > Redirect Editor to configure
Questions, comments, and suggestions are always welcome. If you’re interested in contributing to the code behind Redirect Editor, it’s hosted on GitHub.


Hi
love this plugin, easy and effective
many thanks for it
a question :
is it possible to write and redirect directories, like /files/, instead of rewrite all one by one ?? ( like/files/file1.asp … /files/file2.asp …etc)
something like wildcards… /files/* etc…
many thanks for info
best regards
Happy Christmas
paco
madrid.spa.EU
Hey paco, I’m glad you like the plugin. Sure it’s possible, but it would take some work to implement. Also I wanted to keep it as simple as possible, so it wouldn’t trip people up. But I suppose I could add some level of pattern matching or wildcard character support. Not sure when I’ll get around to it though.
I’m having the weirdest thing happen, in that only some of the redirects listed work, and they’re all in the same format. I have no other redirect plugin working, deactivated Bulletproof Security, etc. Any ideas?
Nigel, shoot me an email with the list of redirects.
Hi Justin, just a quick question, and probably a silly one – but does this plugin setup the redirects as 301 permanent moves?
Kevin, yep, the redirects are all set up as 301 permanent moves.
Hey, great, easy to use plugin. I’m having trouble however getting them all working. Seems like when there are more than one directories involved its not working for me. For example, redirecting “/other/” works fine, but redirecting “/other/more-fun-stuff/” doesn’t seem to work. Any possible work arounds for this issue? Thanks!
Please disregard my comment. I was either caching or there was some server delay for those pages. Seems to be working now. Again, love the simplicity of this add-on, thanks again.
Nice, but doesn’t work with /#!/something/. The path /#!/ is generated by a theme, and after changing the theme we should redirect. Maybe the plugin takes this as comment because it has # ?
Eeli, the thing to realize is that any part of the URL after a
#(hash) is known as a “fragment identifier” (even if it looks like a standard URL path) and thus it is not sent to the webserver by the web browser, and thus it is not visible to the Redirect Editor plugin for redirecting.For example, the URL
http://example.com/#!/my-blog-post/would appear to the webserver simply ashttp://example.com/and it would be up to some JavaScript on the web browser’s end to correctly request and display the right post.If you switched from a theme that previously published “hash-bang URLs” to a theme that does not, you actually need to include some JavaScript in your new theme to perform the redirect—and it’ll be up to the browser to handle the fragment identifier. I’m not sure if such code exists, or what it would take to write.
Hope this helps somewhat.