Domain Manage

Removing old post permalink slugs

Discussion in 'Wordpress' started by wb, Sep 6, 2011.

Thread Status:
Not open for further replies.
  1. wb United Kingdom

    wb Well-Known Member

    Joined:
    Mar 2009
    Posts:
    2,072
    Likes Received:
    34
    I've been working on a WordPress installation (not yet live) and have been adjusting the slugs so they are optimised for the best keywords possible. However, noticed that the old permalink slugs now automatically redirect to the new one. This isn't needed as the website hasn't been published yet.

    E.g. /old-page-title/ automatically redirects to /new-page-title/

    So far I have:

    1. Checked the root .htaccess file, nothing there.
    2. Checked the wp_postmeta table in PHP MyAdmin for the meta_key "_wp_old_slug" after finding out about this online, nothing there.
    3. Deleted old post revisions, no change there either.

    Not a major problem, but would rather clear them.

    Anyone have any ideas? :)
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. woopwoop United States

    woopwoop Well-Known Member

    Joined:
    Jan 2007
    Posts:
    2,198
    Likes Received:
    33
    Not sure if this is why, but do both url slugs have a number (the same number)?

    /any-slug-text-21/

    and

    /some-other-slug-text-21/

    will both go to the same WP article because rewrite is focusing on the 21.
    You could type anything before the -21 and would reach the same article.

    If this is what's happening, then you don't need to worry about the SEO implications as the new url will be picked up.
     
  4. wb United Kingdom

    wb Well-Known Member

    Joined:
    Mar 2009
    Posts:
    2,072
    Likes Received:
    34
    Thanks for the reply.

    Nope, no numbers just text.

    Not sure if this helps - but if I add a new post with the same slug as the old one, it overwrites the redirect and displays the post. If I then delete that post, the redirect kicks in and redirects again. It seems to be a recognised feature in WordPress and must be stored somewhere either in a file or the database, but just can't seem to find it (even after trying various search queries on the database).
     
  5. AssetDomains United Kingdom

    AssetDomains Well-Known Member

    Joined:
    Feb 2010
    Posts:
    2,951
    Likes Received:
    52
Thread Status:
Not open for further replies.

Share This Page