.htaccess woes

Associate
Joined
20 May 2007
Posts
441
Hi everyone,

I've completely shuffled around my website and one thing I'd like to do, although don't know how to achieve it, is to alter some URL's if they are requested.

For example:

http://www.gauntface.co.uk/blog/2010/01/04/proximity-alerts-in-android/

Should be:

http://www.gauntface.co.uk/pages/blog/2010/01/04/proximity-alerts-in-android/

The only difference is the blog directory has moved into pages. The permalinks are all the same.

Does anyone have any good resources so I can learn about this? because I think I'm going to need this more and more, but my Googling leads to pretty in depth stuff, anything more lightweight to get me started would be great.
 
I've not tested it but try:
Code:
RewriteEngine on
RewriteBase /
RewriteRule ^/blog/(.*)$ /pages/blog/$1 [L,R=permanent]
 
Back
Top Bottom