I need to: replace old SEO unfriendly URLs with new SEO friendly URLs
e.g. replace
http://../products/?type=genre.main.key&key=DAN&title=Dance&page=1
with
http://../genres/dance?key=DAN&pg=1
and replace
http://../products/?type=genre.key&key=HOU&title=House&page=1
with:
http://../genres/dance/house?key=HOU&pg=1
implementation:
- Do the mapping client side (angular).
- I guess this is going to be rather complex
- Do the mapping in nginx configuration.
- create permanent redirects (301) for all old to new (using regex)
- create a proxy server that serves the old and use a proxy pass to route new to old
The 2nd approach would (I think) make sure that the SEO friendly urls are indexed (2a) and the new urls are mapped onto the old urls that are served by the proxyserver.
Is the above approach (outlined under 2) valid? Is this a proper strategy?
(this is before I want to try make this work, because I have almost no experience with the nginx configuration, so it will be a daunting task)
Thanks for your advice. Regards, dexter