If you’re in the process of restructuring a Textpattern site, then this is the plugin for you!
- Textpattern 4.5+
To install go to ‘Plugins’ under ‘Admin’ and paste the plugin code into the ‘Install plugin’ box, ‘upload’ and then ‘install’. You will then need to activate the plugin.
To uninstall arc_redirect simply delete the plugin from the ‘Plugins’ tab. This will remove the plugin code and drop the arc_redirect table from your Textpattern database.
arc_redirect adds a new tab under ‘Extensions’ from where you can define pairs of URLs for handling redirects. Basically provide an original URL on your Textpattern site that is generating a 404, “page not found”, error and a redirect URL. Then whenever someone goes to the original URL rather than get the standard 404 error page they will be redircted to the new URL (with a 301 permenantely moved, or 302 temporarily removed).
The redirect from URL must produce a 404 page in Textpattern on the site this plugin is installed.
- arc_redirect treats http://www.example.com/missing the same as http://www.example.com/missing/
- arc_redirect does not treat http://example.com/missing and http://www.example.com/missing as the same URL
- You can use absolute URLs like /missing
Thanks to Oliver Ker for giving me the idea for this plugin.