• I am trying to set up 301 redirects. I tried via .htaccess in file manager and it didn’t work. Then I tried using the Redirection Word Press plugin. But it is still not working.

    A handful of my recipe post URLs changed on their own and I suspect that the latest Word Press revision of that recipe just got saved as new URL with number extension (example: revision 5) when I was updating.

    So for example, instead of the original URL slug of “moist-maple-cake” it got converted to “moist-maple-cake-5”. I want to revert back to the original slug but for some reason it is not working – the URL just reverts back to the new one with the number extension.

    https://www.thedeliciouscrescent.com/moist-maple-sweet-potato-walnut-butter-cake-5/

    I have tried to edit the slug within the post too but it is not working. I have lost the previous share counts. But more importantly I would like to have the original slug without the number extension. My belief is that Word Press treats both the versions as the same so that’s why it may not be working. But I would like to revert to the old one. Thanks so much for any help.

    • This topic was modified 7 years, 9 months ago by ariabav.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The -# for a post slug is created when a site has multiple posts with the same base slug, so, for example:

    The site has a post with a slug of ‘recipes’.

    After, a new post is created with a Title of Recipes. On save, an attempt is made to create a slug again of ‘recipes’, and since there cannot be 2 posts with the same slug, that latter post will be created with a slug of ‘recipes-2’.

    Repeat that, and we get -3, -4, -5.

    A plugin or theme option (now not working) may have changed default core behavior on this, so the standard advise is given:

    Deactivate all Plugins.

    Switch to Default theme.

    Review site.

    Revert one step at a time and then review site. When issue comes back, you have isolated the faulty theme or plugin.

    Consult those plugin or theme folks.

    Thread Starter ariabav

    (@ariabav)

    Thank you so much for your response.

    I have typically named my images following what I used for the posts, to stay consistent. But I would add a number to the images. And it has never caused a problem before. Only recently I started having a problem with the URLs adding an extra number at the end.

    I went to the media page and added the word “image” at the end of the slug for all the images pertaining to those posts such as “moist-maple-cake-image-1” and then went back to the post and was able to revert to the original slug.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change post URL’ is closed to new replies.