Help with redirect

  • Thread starter Thread starter Deleted member 1454581
  • Start date Start date
D

Deleted member 1454581

Guest
Hello guys,
I'm running my websites and at some old website I want to change URL structure though wordpress from
Code:
site.com/postname
to:
Code:
site.com/category/subcategory/postname
As I read at many articles here it's better for SEO and google can better understand what about we are writing.
but when i'm changing it the old URL's is going to 404 not found and i'm losing all backlinks or internal links inside articles.

I tried to search and find solution and didn't found anything to make it automatically, no yoast or rankmath helps here.
manually doing so much links will take weeks.
maybe someone knows how to solve it?
regards
 
As I read at many articles here it's better for SEO and google can better understand what about we are writing.
but when i'm changing it the old URL's is going to 404 not found and i'm losing all backlinks or internal links inside articles.
If you really need to do a redirect, I would simply not do this (specially for those that could be already receiving traffic). Otherwise just do the switch without looking back. Your pages are not going to rank better for this specific switch (unless they had really awkward slugs)
So for example if your page was about recipes and the url was: yourdomain.com/best-cheese-cake it won't do any better if you switch it to yourdomain.com/desserts/cakes/best-cheese-cake/
 
There are many redirect plugins out there that might be able to help.

For example, Redirection has a Migration feature that allows you to migrate old permalinks.

Other than that, you might have to use .htaccess or add a new filter into functions.php
 
You need google to copy the new path and index the content in there which can be easily done with REL CANONICAL Tag.

Setting up 404, 403 re-directs is not recommended by Google, and it also defeats the purpose of yours setting subfolders to cover the topical intent of the niche of your website.
 
Back
Top