Posted by: bofe | November 10, 2006

Cleaning up those MovableType 404s with mod_rewrite

Long ago, I was running Movable Type with a link structure that looked like this:

http://www.bofe.org/archives/yyyy/mm/dd/entry-title

Then, I switched to wordpress which gives me this:

http://www.bofe.org/wp/yyyy/mm/dd/entry-title

Apache and mod_rewrite to the rescue.

Make a .htaccess file at the root level like this:

RewriteEngine On
ReWriteRule archives/(.*)/(.*)/(.*)/(.*) http://www.bofe.org/wp/$1/$2/$3/$4

Replace my domain with yours. Bliss!

Responses

ftw

Hehe, excellent.

oh, hell no!

and i notice you’re still in denial about my domain being “down”. ;)

Leave a response

Your response:

Categories