1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Changing Permalink Structure in Wordpress

Discussion in 'Web Design' started by umerjutt00, Dec 8, 2013.

  1. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,644
    Likes Received:
    1,904
    Occupation:
    Ninja
    I have a wordpress site with around 260+ pages. The problem is I want to change the permalink of my new posts and retain the same permalink for the old posts...

    Like the old posts will have the same permalink but all new posts will use a different permalink...

    Is there any way I can do it?? The only way I have found is to change the permalink of all posts and then 301 the old permalinks to the new one... I need something which doesn't contain the 301 redirect.
     
  2. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,644
    Likes Received:
    1,904
    Occupation:
    Ninja
  3. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,143
    I don't think there is a simple way to do that. You 'll probably have to create a custom WP plugin.
     
  4. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    8,835
    Likes Received:
    7,445
    Occupation:
    ZLinky2Buy SEO Services
    Location:
    ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩
    Home Page:
    I think Wordpress automatically redirects the old permalink to the new one. I may be wrong, but I think that's a feature right out of the box.
     
  5. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,143
    It does, that 's what he wants to partially avoid ;)
     
    • Thanks Thanks x 1
  6. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,644
    Likes Received:
    1,904
    Occupation:
    Ninja
  7. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    8,835
    Likes Received:
    7,445
    Occupation:
    ZLinky2Buy SEO Services
    Location:
    ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩
    Home Page:
    I see what you want now.

    Why can't you install a second WP under a different directory? That installation's .htaccess would only influence those subdirs.... I know it's a PITA but that would solve your problem, and then you freeze the old WP and just maintain it(security updates, etc).

    Another idea: Using an inverse proxy before your main server, you may be able to rewrite the addresses from posts under a certain folder. nginx is great for this.

    So if all new posts go into /content/ for example, you can tell it to rewrite some virtual url into your current url structure.
     
    • Thanks Thanks x 1
  8. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,644
    Likes Received:
    1,904
    Occupation:
    Ninja

    That totally passed over my head. ;)
     
    • Thanks Thanks x 1
  9. saber210

    saber210 Supreme Member

    Joined:
    Sep 1, 2011
    Messages:
    1,358
    Likes Received:
    500
    Location:
    -
    If you change the permalink of your site with older post.

    Wordpress will already make a redirection for your old permalink to your new permalink.
     
  10. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    8,835
    Likes Received:
    7,445
    Occupation:
    ZLinky2Buy SEO Services
    Location:
    ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩
    Home Page:
    LOL! Create a new WP installation in a subdirectory, for example /content2/ then start posting there with the new link structure....leave the old WP frozen in time. From then on, all new posts will have the new link structure. That is, if you don't mind working under /content2/ from now on, just as an example.
     
  11. JDierene

    JDierene Newbie

    Joined:
    Jun 4, 2013
    Messages:
    17
    Likes Received:
    2
    I think this is really the only way to do this.
     
  12. Austin56101

    Austin56101 Newbie

    Joined:
    Dec 15, 2013
    Messages:
    43
    Likes Received:
    2
    Occupation:
    Youfit Health Clubs
    Location:
    California
    i agree with JDierene
     
  13. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,644
    Likes Received:
    1,904
    Occupation:
    Ninja
    Is there any way to do that manually? by going to server and copying the posts.. changing the permalink in wp.. then pasting the posts again thus over-writting them... Is it possible?