Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi Cherry,

    You can update your permalink once.

    Located in the Settings → Permalinks panel.

    Just click on Update button.

    Regards,
    PD

    Thread Starter cherry0

    (@cherry0)

    Hi greyparrots, thank you for the tip but it didn’t seem to work. The URL of the old post still seems to redirect to the URL of my new post, even after deleting the old post. Pretty strange, I can’t figure it out as wordpress should be seeing them as 2 completely different posts since they have different URLs.

    For now I have deleted both of the posts, but I’m still not sure how to solve this issue. If I create another post now with a different URL will wordpress start to redirect the old URLs to this new post again? It shouldn’t do but this is what seems to be happening.

    Thread Starter cherry0

    (@cherry0)

    Maybe wordpress is doing this because the posts had the same content?

    Hi Cherry,

    Can you kindly deactivate the plugins one by one and try it once. Any plugin might causing this.

    Also kindly check the .htaccess file of your site, located under home directory

    A normal .htaccess has this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Thread Starter cherry0

    (@cherry0)

    Hi greyparrots,

    I checked my .htaccess file and it is exactly the same as above. I then deactivated all plugins and updated the permalinks as before.

    I then created a new post and again the old URL redirects to it.
    =========================================================

    UPDATE:
    I have done some testing and I think this may be a bug with wordpress. I am running Version 3.8.1.

    So I just created a new post, with a title of ‘test post’ and content of ‘test post’ and a URL of https://www.domain.com/post-name-123

    But still the deleted old post with URL of https://www.domain.com/post-name still redirects to this new post above.

    So then I changed the URL of the new post to this: https://www.domain.com/123-post-name
    and now https://www.domain.com/post-name no longer redirects to the new post!

    To double check that this is not related to my plugins, I repeated the process after deactivating all my plugins and I get the same result.

    ——

    Please can you also try this to see if you get the same result.

    1. Create a post with a URL of bunny-rabbits and add a title and some content and publish the post.
    2. Now delete that post and empty it from the trash.
    3. Create a new post with a URL of bunny-rabbits-123 and add a title and some content and publish the post.
    4. Now visit: https://www.yourDomain.com/bunny-rabbits and see if it redirects to https://www.yourDomain.com/bunny-rabbits-123

    ——-

    I will also try this myself on a different website and see if I get the same results.

    I am afraid I can help you to resolve this issue without looking into the site configuration.

    Kindly consult with a professional or create a job post here jobs.wordpress.net

    Regards,
    PD

    Thread Starter cherry0

    (@cherry0)

    Hi greyparrots,

    That’s fine, I will try to replicate the problem on my other website, I just gave you the details in case you wanted to try it yourself on your own site.

    I’ll update you here with my results. Thanks

    Thread Starter cherry0

    (@cherry0)

    Hey greyparrots, looks like this is a wordpress bug.

    I just repeated the steps I outlined above but on my other website and the results are the same.

    So I created a post with URL: https://www.mywebsite.net/orange-car/
    I published the post, then I deleted it and removed it from the trash.

    I then created a new post with URL: https://www.mywebsite.net/orange-car-today/ and published the post.

    I then visited https://www.mywebsite.net/orange-car/ and it redirects to the new post.

    Is this a wordpress bug or am I missing something obvious? Thanks.

    Yes, you are right.

    Any of these urls
    https://www.mywebsite.net/orange-car-toda
    https://www.mywebsite.net/orange-car
    https://www.mywebsite.net/orange

    Will redirect to the url
    https://www.mywebsite.net/orange-car-today/

    This is partial url redirect. If url is not present it will got redirect to the url.

    Regards,
    PD

    Thread Starter cherry0

    (@cherry0)

    Hey greyparrots,

    Thanks for your help. Is this a bug then?

    No.

    But you can bypass it.

    The details is here

    Regards,
    PD

    Thread Starter cherry0

    (@cherry0)

    Great, thank you very much for all your help.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Can't Stop Old Post URL redirecting to New Post URL’ is closed to new replies.