A WordPress redirection plugin allowing editors to redirect posts or pages to alternate URLs by simply adding a custom field to their entry.
Handy when you want an external URL to show up in your standard page listing when using WP as a content management system. Or if you want imported posts to point to the original permalink when the single version is accessed, but still show in your templates in the post listings (home, search results, archives, etc). And more.
Starting with version 1.1, wpRedirect optionally uses the built-in caching mechanism provided by WordPress 2+, to increase performance. Redirect URLs are cached for 365 days when first publishing a post/page, or when updating posts/pages with their status set to “published”. Cache is also generated on post/page load when required (refresh).
Developers can also use the wpRedirect($url) function in their own code workflow as a safe and convenient redirection mechanism extending the built-in wp_redirect function.
Download
- wpRedirect-1.1.tar.gz: 15.7KB – tar/gzip archive
- wpRedirect-1.1.zip: 17.0KB – zip archive
- wpRedirect-1.1-phpdocs.tar.gz: 34.6KB – code docs
- wpRedirect-1.1.sha1sum: 197b – File integrity signatures
All historical releases can be found at:
http://labs.tekartist.org/wordpress/wpredirect/releases/.
Installation
Installing should be a piece of cake and only take a few minutes.
- Upload the wpRedirect directory (safer future upgrade path) or just the wpRedirect.php script to your /wp-content/plugins/ directory.
- Login to your WordPress instance as an admin user.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
All done! Optionally and for optimal overall performance, be sure to turn on caching in WP 2+, which wpRedirect will use to cache the URLs to redirect to if available.
Using wpRedirect
Once installed, you will be able to add a redirect_me custom field, with a URL as a value, in the post/page edit screen. Doing so will have the item automatically redirected when accessed.
You can change the key name of the field to scan for through the Redirection configuration screen available under the Options menu in the WordPress Admin section.
License
wpRedirect: A WordPress Redirection Plugin.
Copyright (C) 2007 Stephane Daury http://stephane.daury.org/wpRedirect is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
wpRedirect is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Source and Development
wpRedirect welcomes friendly contributors wanting to lend a hand, be it in the form of code through SVN patches, user support, platform portability testing, security consulting, localization help, etc.
A request has been placed to setup the project in the WordPress Plugin Repository for a better collaboration environment. In the meantime, the source is available under my personal Subversion repository as follow:
- Latest release: stable
- Development: unstable
- Release archives: as stable as they were when released.
Developers might also be interested in the generated code documentation (phpDocumentor).
Please send your patches, questions and comments to wordpress at tekartist dot org.
Frequently Asked Questions
Will I get answers if I ask questions?
Magic eight ball says: it is very likely. :)
Feel free to send your questions and comments to wordpress at tekartist dot org until I complete setting up the project with better collaboration and support tools (if it proves necessary).
