Well, I have been researching this a bit over the last week to find a solution for you. I was thinking of one of my
sites where I really need to do this and had a large number of sites bookmarked to review to decide how best to
handle it myself. I was just about ready to give up and just do it manually like you have. Then, I found the site
below. It is not really an answer for you, but, it might be useful. It seems like it is how most are doing it now!
It explains a great way to handle the redirecting using only a small line in the re-write code that sends users to
one file that determines the redirection using the database. This is great, because you can have the file track all
url’s that are typed into your site and you can set up a database admin page to control the url changes online.
http://code.tutsplus.com/tutorials/using-htaccess-files-for-pretty-urls–net-6049
Now, also, back to your version, here are several sites that discuss this process and seem to be good ones to
read. Personally, I am going to test the above one and see if it will work for me. I also found a tricky way you
can do redirection using a 404 page that goes to a PHP file and then uses that to redirect without use of the
re-write system. But, it does not really display the URL the way I would like. Anyway, here is the list of a few
to read. Not sure if all this helps, but, maybe…
http://pixelcode.co.uk/tutorials/webmaster/clean-urls-with-mod_rewrite/
( This one makes a comment about the [L] flag that I forget about… It helps if you order rules correctly!)
http://forum.codecall.net/topic/74170-clean-urls-with-php/
( This one uses the same technique as the first post above, but, goes into a lot of detail to explain it all…)
http://www.the-art-of-web.com/system/rewrite/1/
( More in the line of your way, but, has some nicely highlighted explanations of how to do it. )
After reading all of these and a hundred other sites, I think the best is the first way or the next to last link. It does
seem that this is the way everyone is doing it now, just from what I have read. Perhaps one of the programmers
here with more info on this will jump in to help further. I am planning to put this version on one of my servers
for further testing. But, it seems this is better than complicated rewrites done in the .htaccess file… Well, not
sure if all this helps, but, lots of info in all this…