A while ago I migrated from MT to Wordpress. This has meant lots of 404 errors as links / bookmarks to the old MT pages didn’t get redirected to their new WP equivalent. My bad. I should have sorted this out at the time I migrated. Better late than never. Here’s what I’ve done in my lighttpd config:
1. Ensure the mod_redirect module is enabled
2. Added this to the site’s config:
$HTTP["host"] =~ "example.com {
url.redirect =
( "/mt/" => "http://example.com/blog/",
"atom.xml" => "http://example.com/blog/feed",
"rss.xml" => "http://example.com/blog/feed",
"^/blog/.+/(.+).html" => "http://example.com/blog/$1"
)
}
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.