So my question is half oriented SEO half technical : I have a lot of links to redirect and instead of doing them one by one I was asking my self :
Is there a way to write a rewrite rule like that (this is pure fiction and not usable on nginx)
rewrite /america/(.*)/ http://www.example/nort-america/$1/ permanent;
if 500 rewrite /america/(.*)/ http://www.example/south-america/$1/ permanent;
So the idea is to redirect to a specific link and if the redirection fail try an other link.
Is this possible and moreover is this SEO friendly ?
proxy_pass
instead