Forums

How to bypass Permalink URL Incrementing... (3 posts)

  1. pwagner3
    Member
    Posted 1 year ago #

    How can I avoid the URL incrementing for permalink URLs?

    i.e. If I create post http://www.domain.com/a/ and I try to create another post with an identical title, the 2nd URL is created as http://www.domain.com/a-2/. That is understandable because I know 2 posts cannot point to the same URL.

    But if I create http://www.domain.com/a/ and then delete that post, and then create another post with the title "a", WP still creates http://www.domain.com/a-2/, as if the deleted post still exists.

    I want to delete all of my posts, and repost them with an automated tool because I have made changes to the format and design the tools uses to create my posts, but I do not want to lose my Google indexing by abandoning my original URLs and incrementing them all by 1.

    Since the deleted post's URL still gets incremented, I figure that all the URLs must be tabled somewhere. Right? If so, can I just initialize the table and reload my posts, thus preserving the original URL?

    I have seen similar questions asked elsewhere, but I have never seen an answer.

    Thanks for your thoughts.

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    But if I create http://www.domain.com/a/ and then delete that post, and then create another post with the title "a", WP still creates http://www.domain.com/a-2/, as if the deleted post still exists.

    it 'exists' in the trash - clearing the trash before creating a new post should solve this problem.

  3. pwagner3
    Member
    Posted 1 year ago #

    MANY THANKS! This was truly vexing me.

Topic Closed

This topic has been closed to new replies.

About this Topic