I have an application with 2 domains.
One of them www.dominiolisboa.com I need to redirect the requests of the / to /lisboa/pt-PT
When someone type www.dominiolisboa.com needs to be redirected to www.dominiolisboa.com/lisboa/pt-PT
I've tried the following rule
server {
listen 80;
server_name rockinriolisboa.sapo.pt www.rockinriolisboa.sapo.pt;
location / {
rewrite ^ /lisboa/pt-BR/$request_uri permanent;
}
}
But this way I get the error ERR_TOO_MANY_REDIRECTS