WordPress.org

Ready to get started?Download WordPress

Forums

Change Permalinks without changing existing posts url's? (5 posts)

  1. leggy
    Member
    Posted 4 years ago #

    Hi,

    I am struggling with this problem. I wish to change the permalink structure on my blog, or even have the ability to change the permalinks of individual posts, as I post them, without changing past post url's.

    The problem is that when I first set up the blog, it was recommended that I use the permalink structure 'postid'. Therefore, when I change the post slug, the url is not affected.

    If I simply change the permalinks I have to change the url's of all my posts.

    Can anyone recommend a way to do this?

  2. lorenzo
    Member
    Posted 4 years ago #

    What version of WP are you using?

    For sure in WP3, but i think since 2.7 there is an option in the edit post under the title which allows you to customise permalinks manually.

    as far as i know if you change the structure (i.e. from the settings >permalinks) all of them are changed at once.

    i personally would do this offline: i.e. copy the wp_posts (or back it up), change the permalink option to what you want and then overwrite the old posts GUID to keep the old posts with the old links, but there might be someone else out there with a simpler solution.

    there are also a couple of plugins which create a permanent redirect using htaccess, but you might not be able to do this depending on where you host your blog. (see http://www.deanlee.cn/wordpress/permalinks-migration-plugin/
    http://wordpress.org/extend/plugins/permalinks-migration-plugin-for-wordpress/ for one example)
    some hosts don't allow editing htaccess files in subfolders.

    hope this helps

  3. leggy
    Member
    Posted 4 years ago #

    Hi guys, thanks for the replies.

    My blog's have no edit post button!

    I believe there is only an edit url button when you have 'postname' as part of the permalink structure.

    Also I went into the database via phpmyadmin and changed the GUID, for a new post keeping the present permalinks setting.

    However, this did not change the url. I still ended up with mypost/postid.

    How exactly are you supposed to overide a url?

    Leggy

  4. lorenzo
    Member
    Posted 4 years ago #

    So, what version of wordpress are you using? i'm just not convinced about what you have been doing...

    the htaccess method is what you need to 'override' the url as basically you create a rule which is re-writing it. look at the doc suggested above and you can also google the topic for more info

  5. Louis_Dea
    Member
    Posted 3 years ago #

    Hey guys,

    I think one of the potential solution is installing the "Advanced Permalinks" plugin which allows you to select a time period with different permalink structures.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags