Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
.htaccess file to redirect Wordpress links to Blogger
Options +FollowSymLinks
RewriteEngine On
#index page
RewriteRule ^index.php http://www.christopherslade.com [R=301,L]
#About
RewriteRule ^author/crslade http://www.christopherslade.com/p/about_21.html [R=301,L]
RewriteRule ^about http://www.christopherslade.com/p/about_21.html [R=301,L]
# Feed
RewriteRule ^feed http://www.christopherslade.com/feeds/posts/default [R=301,L]
# Post URL
RewriteRule ^2011/09/rails-editors-and-the-command-line/$ http://www.christopherslade.com/2011/09/rails-editors-and-command-line.html [R=301,L]
RewriteRule ^2009/03/outliers-by-malcolm-gladwell/$ http://www.christopherslade.com/2009/03/outliers-story-of-success-by-malcolm.html [R=301,L]
RewriteRule ^2010/10/migrating-to-a-new-host/$ http://www.christopherslade.com/2010/10/migrating-to-new-host.html [R=301,L]
RewriteRule ^2011/01/amacraigbay-with-google-products/$ http://www.christopherslade.com/2011/01/amacraigbay-now-with-google-products.html [R=301,L]
RewriteRule ^([0-9]{4})/([0-9]{2})/(.*)/$ http://www.christopherslade.com/$1/$2/$3.html [R=301,L]
# Arcive
RewriteRule ^([0-9]{4})/([0-9]{2}) http://www.christopherslade.com/$1_$2_01_archive.html [R=301,L]
RewriteRule ^tag/(.*) http://www.christopherslade.com/search/label/$1
RewriteRule ^category/(.*) http://www.christopherslade.com/search/label/$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment