How to delete an unwanted 301 redirect

If i understand correctly this should fix things..

  1. Access your WordPress dashboard.
  2. Go to “Posts” > “Categories” and find the category you accidentally created with the same URL as your page.
  3. Edit the category and change its slug to something different, like “food-travel-guides-category”.
  4. Save the changes to the category.
  5. Now, go to “Pages” and find your “Food Travel Guides” page.
  6. Edit the page and change its permalink back to “food-travel-guides”.
  7. Save the changes to the page.
  8. Check if the original URL (https://exploringthefoodscene.com/food-travel-guides/) now leads to your desired page.

Hi @saracellini88,

Thanks for the detailed history of what happened and for the very clear explanations. This helps a lot!

What’s happening here is that WordPress is smart enough to redirect a wrong URL to another existing similar one. Since there is no https://exploringthefoodscene.com/food-travel-guides/ anymore, it is trying to find a similar one and ends up at https://exploringthefoodscene.com/food-travel-guides-old/ automatically.

To bring back the https://exploringthefoodscene.com/food-travel-guides/ URL, you just have to choose to which of the two “Food Travel Guides” pages you want it to be applied (either the one with the URL, aka slug, food-travel-guide or the one with the slug food-travel-guides-old). Then go to the WordPress Pages screen (the pages list), mouse over the page you want to update the slug for, click on “Quick Edit“, and update the part in front of “Slug” to food-travel-guides (instead of food-travel-guide or food-travel-guides-old). Then click the “Update” button.

Now the new slug of the page (URL) will be https://exploringthefoodscene.com/food-travel-guides/.

Don’t hesitate if you have any questions or need further help.

Hi Jamie,

Thank you for your kind reply.

Apologies, I just realised that I haven’t mentioned that the category it has been already deleted.

The problem, I believe, is within the redirect interface. What happens if I delete to the 301 redirect for food-travel-guides-category? (Ref the last photo)

Also, I deleted the category, so why does it create a 301 for the URL?

Please have a look at the below timeline.

Sorry, those questions might sound silly, but I have to understand for my knowledge.

Thanks and look forward to hearing from your expertise.

Best

Sara

https://exploringthefoodscene.com/post-template/?preview_id=3206&preview_nonce=2c6abc250e&preview=true

Hi again @saracellini88

In fact, when you posted on the forum, it wasn’t a category issue anymore. The redirections were only happening between regular pages (which indeed have a section that lists posts of a specific category).

Usually, category pages include something in their URLs to distinguish them from regular pages, such as, well, category. For example, the category URL of “Food Guides Abroad” is currently https://exploringthefoodscene.com/food-guides-abroad/, but it might be best to have it as https://exploringthefoodscene.com/category/food-guides-abroad/ for instance or something else. This is usually the default configuration and it helps to avoid URL conflicts with pages, as you encountered. However, it’s not a setting that we can change with a few clicks, so it’s more likely either a specific plugin that is doing this, or your theme, or a custom code snippet added by a developer, or a special setting of your hosting provider. You might want to fix this, but it’s not critical as long as you don’t create a page and a category with the same name.

Anyway, it looks like your primary issue is now fixed since there are no pages with food-travel-guides-old or food-travel-guide anymore, and the URL https://exploringthefoodscene.com/food-travel-guides/ is now working. This is great, congrats! 👍 I can see there is only 1 post though. If you want to list more posts on the page, you just have to add them to the “Food Guides Abroad” category and they will show up.

Is there anything else you need help with? If not, please don’t forget to mark this topic as resolved. This helps volunteers find the topics that still need attention. Thank you so much!

  • This reply was modified 27 minutes ago by luk4.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer