News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Redirecting Old URLs in WordPress
August 10, 2010 @ 10:19:29

On the SitePoint PHP blog today Craig Buckler has posted a new tutorial about redirecting old URLs - specifically WordPress ones - to their new locations.

We recently devised a system to redirect old URLs in PHP so that you could avoid "page not found" errors (I suggest you read it before venturing further). In this article, we'll create a similar system for WordPress, the popular PHP CMS. [...] There's probably no need to worry about redirecting old URLs if you've been using WordPress since day one. The system is reasonably good at finding the right page, even if you change your permalink structure.

They show a simple way to update your theme to catch the "not found" pages and redirect them to another script for handling. This new script takes the request and looks through an array of options to see if there's a match, then redirects if there is (via a 301 HTTP status response).

1 comment voice your opinion now!
redirect wordpress blog tutorial permalink


blog comments powered by Disqus

Similar Posts

QaFoo.com: Mocking with Phake

NETTUTS.com: How to Implement Email Verification for New Members

NetTuts.com: Letís TDD a Simple App in PHP

Binary Tides Blog: Setup Apache 2.4 and Php FPM with mod proxy fcgi on Ubuntu 13.10

James Morris' Blog: A Symfony2 Console Command and the Foursquare API Venuehistory


Community Events





Don't see your event here?
Let us know!


interview laravel framework install configure developer bugfix library series threedevsandamaybe application list release podcast community api language wordpress code introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework