Sunday, October 6, 2019

migrated site, same domain, urls have changed, url params have changed, how do i best handle my 301 redirects?

I just migrated a site that's existed for 15 years. It's a sports statistics website, it has over 40k unique pages with unique content, but content is generally statistics table with very little unique text.

many old the old urls have genuine backlinks on other fan sites, forums, etc.

I've set up some 301 redirects in my nginx config for generic pages, for example

/sports/about > /about

But other pages had lots of url params and I'm now using friendly urls + the ids themselves have changed, for example

/season2012/teams?HomeID=123 -> /2012/teams/456-my-team-name

These redirects I cannot do with nginx alone, I have to first redirect to my server endpoint, and from there translate the old url params and return the new url.

So my question is, do I do a 301 redirect from nginx to my server endpoint, and then another 301 redirect to the new url? Or do I do a regular redirect (non-301) from nginx-to-server and then from server return a 301 redirect to the new url?

Which method is least likely to mess up with my link juice and retain my backlinks value?

Also will doing these 301 redirects properly speed up my old links being replaced on the google index? My new site has been live for a week and despite submitting sitemaps, very few new urls have been indexed and all the old ones are still indexed

Thanks for the help

submitted by /u/spar_x
[link] [comments]

from Search Engine Optimization: The Latest SEO News https://www.reddit.com/r/SEO/comments/de2w91/migrated_site_same_domain_urls_have_changed_url/>

No comments:

Post a Comment