Skip to content
michele.blog

Pensieri

Since 2003

Portrait: Michelle Chaplow, Seville, June 2026.

Tag: Permalink

Fixing Permalinks With Mod_Rewrite

Blogging & the Web Leave a comment

I’ve posted a couple of times about the migration from MovableType to WordPress (and all the other moves that preceded it). One of the things I discovered via the “Redirection” logs was that I was losing quite a bit of traffic due to some “anomalies” and differences between how the permalinks are currently set and […]

Movable Type To WordPress Permalink Oddness

Blogging & the Web Leave a comment

For some bizarre reason the WordPress importer changes the post names from “thing-other-thing” to “thing_other_thing” ie. replacing the dash with an underscore. The simplest way to fix it is to run a bit of SQL directly on the database: update wp_posts set post_name = replace(post_name,’_’,’-‘); Thanks to the person who provided the solution here