WordPress.org

Forums

Change permalink hyphen to an underscore??? (4 posts)

  1. rvelton
    Member
    Posted 7 years ago #

    I have an old blog site that is running movable type and I have upgraded to wordpress. the upgrade has gone really smooth and now I am in the process of matching old urls in the new system.

    However, all the permalinks have underscores instead of the dashes. Is there a global was to change all those quickly and easily?

    Thanks.

  2. piratazzurro
    Member
    Posted 6 years ago #

    I'm interested in the same problem :)

  3. Boris
    Member
    Posted 6 years ago #

    you should probably use .htaccess for it. just read somewhere that search engines don't like underscores that much. sorry i can't be of more help, but if you search for .htaccess you should get loads if information...

  4. NC@WP
    Member
    Posted 6 years ago #

    all the permalinks have underscores instead of the dashes. Is there a global was to change all those quickly and easily?

    It can be easily done with one SQL query:

    UPDATE wp_posts
      SET
        guid =  REPLACE(guid, '_', '-'),
        post_name = REPLACE(post_name, '_', '-');

Topic Closed

This topic has been closed to new replies.

About this Topic