Movable Type To WordPress Permalink Oddness

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

By Michele Neylon

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version