[wp-hackers] Help modifying .htaccess to redirect old urls

Brian Layman Brian at TheCodeCave.com
Sat Jun 3 21:59:39 GMT 2006


Everton queried:
> I'm trying to use .htaccess to redirect old urls on my old blog to my
new WP blog e.g. need to get 
> Can someone tell me what is wrong with my .htacesss file please.
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
> RewriteRule
^/blog/_archives/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)\.html$
http://connectedinternet.co.uk/$1/$2/$3/ [QSA,L]
> </IfModule>

Take out the first / in the rewrite rule. You are already starting at
the base.

It should look like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^blog/_archives/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)\.html$
http://connectedinternet.co.uk/$1/$2/$3/ [QSA,L]
</IfModule>



More information about the wp-hackers mailing list