Frank_Rizzo - 10:07 pm on Feb 21, 2013 (gmt 0)
Now looking at rewriting the old urls (which are in search engines and on messageboards)
I can not rewrite that in .htaccess. I have to allow those old pages to exist then redirect in php, correct?
If that's so is it worth doing this at all? Isn't this going to double the number of requests, increase bandwidth, cpu overhead etc.
Google requests /sportsperson.php?sport=hky&name=Joe%20Dude
The script detects that the page is the old format (and there is no ID) Searches the database for the name and gets the ID. Now it issues a php redirect
header( 'Location: http : / / ww w .example.com/2419-hockey-Joe-Dude' ) ;
Hmm. This seems a lot of hassle just to get around an apostrophe problem.
I could drop the id and save a small part of the planet in wasted resources.