Problem with 301 redirects from one website to another (web migration project)
-
This post is deleted! -
Not sure what method you are using to setup 301s. If you give more specifics around that, it would help as obviously the 301 redirects are either not setup correctly or for some reason on the parent site is not configured correctly.
This is a stab in the dark. You mention that some 301s work well and some do not. In your example, are you sure that _https://www.parentsite/category/widgets/ _ is a good page that does not 404 already or already has a 301 in place on the parent server? The adding on of the directory from the old site to the new URL looks like behavior when on the parent site you are hitting some sort of 301 loop/multiple hop or other error. You need to use a 301 tool that will show all the hops in a 301. Don't just assume that because the old URL got you to a new URL that the 301 worked perfectly. There could be a temporary redirect or multiple 301s or something else wonky happening in the mean time. I use a Chrome plugin called Redirect Path by Ayima that is handy for spot checking these things. Try that and see if it gives you any insights.
-
Hi Stu,
How are you setting up these 301 redirects? In the code itself? Or, nginx/apache config? Could you please share the redirection rules you've mentioned for this? It seems an issue with redirection rules itself.