WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Permalinks for old site (6 posts)

  1. coopersita
    Member
    Posted 3 years ago #

    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.

  2. Purab Kharat
    Member
    Posted 3 years ago #

    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.

  3. coopersita
    Member
    Posted 3 years ago #

    I discovered this plugin: http://wordpress.org/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.

  4. 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!

  5. coopersita
    Member
    Posted 3 years ago #

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

  6. coopersita
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic