[wp-hackers] Help modifying .htaccess to redirect old urls
Everton Blair
admin at connectedinternet.co.uk
Sat Jun 3 21:12:39 GMT 2006
Hi
I'm trying to use .htaccess to redirect old urls on my old blog to my new WP
blog e.g. need to get
http://www.connectedinternet.co.uk/blog/_archives/2005/10/18/1307475.html to
redirect to http://www.connectedinternet.co.uk/2005/10/18/ (at least it's to
the right day). Can someone tell me what is wrong with my .htacesss file
please.
thanks
Everton
----------------------------------------
<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>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
# Redirect FeedBurner to your own Feed
RewriteBase /
RewriteRule ^feedburner_929946/?$ /feed/ [R,L]
RewriteCond %{HTTP_USER_AGENT} ^FeedBurner.*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# These Rules redirect all feed Traffic to FeedBurner
RewriteBase /
RewriteCond %{QUERY_STRING} ^feed=(feed|rdf|rss|rss2|atom)$
RewriteRule ^(.*)$
http://feeds.feedburner.com/Connected-InternetNewsAndDiscussion [R,L]
RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?/?$
http://feeds.feedburner.com/Connected-InternetNewsAndDiscussion [R,L]
RewriteRule ^wp-(feed|rdf|rss|rss2|atom).php
http://feeds.feedburner.com/Connected-InternetNewsAndDiscussion [R,L]
# These are the standard WordPress Rules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
More information about the wp-hackers
mailing list