Fixed the permalinks

I fixed the old TypePad permalinks. Rather than trying to get the permalink structure in WordPress to match TypePad, I put together some htaccess Rewrite and Redirect rules. Since I only have nine posts on TypePad I just hardcoded them, e.g.:

Redirect 301 /programming/index.html http://blog.milesbarr.com/category/programming/
Redirect 301 /programming/ http://blog.milesbarr.com/category/programming/

RewriteRule ^2005/02/ruby_on_rails.html /2005/02/ruby-on-rails/ [redirect=permanent,last]

I tried just doing redirects for the posts but it kept appending the filename to the new URL, which WordPress’ RewriteRules would translate into URL parameters, which do a search and you just get a ‘No matching posts found page’. The rewrites work fine and send back a 301 so hopefully URLs will get updated automatically. The archive by date pages have the same URL so I didn’t have to do anything for them.

Next stage, try to replicate the old theme in WordPress.

Spread the word: Technorati related  |  Technorati related  |  del.icio.us bookmark it!  |  submit Fixed the permalinks digg.com digg it!  |  reddit reddit!

Leave a Reply

Line and paragraph breaks automatic.
XHTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>