• Resolved coopersita

    (@coopersita)


    Hi all,

    I’m attempting to move a site from Movable Type to WordPress. It’s all going well, except the old entries in MT had permalinks as:

    mysite.com/post_name.html

    I would like to use WordPress’ permalink structure as:

    mysite.com/year/month/post_name

    The problem is that there are a lot of sites out there that link to us, and I don’t want them to be broken (lots of traffic comes to us that way). Is there a way to do a redirect in .htaccess?

    I’m not that familiar with mod_rewrite to write it myself.

    Any help will be greatly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Purab

    (@wordpressapi)

    This is not possible to write such kind of apache rules. I written many apache and Nginx server rule.
    The issue with your requirement is your needed new structure.
    mysite.com/year/month/post_name
    How can we know which month or year need to pass for redirection.

    You can go with following approach.
    mysite.com/post_name.html to mysite.com/post_name

    This is possible with your new site after migration to worpdress without loosing any traffic or broken links.

    Thread Starter coopersita

    (@coopersita)

    I discovered this plugin: https://www.ads-software.com/extend/plugins/advanced-permalinks/screenshots/

    I hope this works, since it would allow me to set a rule for older posts, and one for the newer.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    There are a lot of ways around it, so long as the post name for your old posts is the same as what they are in WordPress now.

    The catch, obviously, is the years/months part, but IIRC if you Urey and go to yoursite.com/postname it SHOULD redirect to the right post.

    Or you could keep the old post format, though I wouldn’t recommend that ?? let us know how the plugin goes!

    Thread Starter coopersita

    (@coopersita)

    Good point, Ipstenu. I’ll make sure to add the basename/slug to the export.

    Thread Starter coopersita

    (@coopersita)

    I did a test, and the plugin I mentioned worked like a charm. It lets you set a different permalink structure for post with specific ids.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Permalinks for old site’ is closed to new replies.