WordPress.org

Support

Support » How-To and Troubleshooting » Can't delete original permalink page – disrupting URLs

Can't delete original permalink page – disrupting URLs

  • rosspruden
    Member

    @rosspruden

    I created a page, used custom permalinks and automatically created a permalink URL like this:

    domain.com/blog

    Then I deleted that page (my bad) and recreated the blog page.
    Now the permalink is forcing itself to be:

    domain.com/blog-2

    I’d like to delete the original page and force the permalink back to domain.com/blog. Can I?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Darrell Schauss
    Member

    @darrellonsite

    I fixed this before. I believe I had to go into database and delete all the past revisions for that page. Though I think in my case I didn’t delete the page. I changed the permalink and was trying to apply the former slug it to another page. It may be the same fix.

    DELETE FROM wp_posts WHERE post_type ='revision' AND post_id = 1; whatever is the post_id.

    Did you accidentally delete it from the Trash too already? If it is still in your trash you can recover it and start using the old page again.

    rosspruden
    Member

    @rosspruden

    Ok, it’s fixed!

    It was still in the Trash. I simply forgot it was there. I restored the file, delete the blog-2 page (permanently) and reset my Admin settings to re-point to the blog page for the blog.

    Worked like butter! Thanks a bunch for reminding me to check the obvious. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't delete original permalink page – disrupting URLs’ is closed to new replies.