cancel
Showing results for 
Search instead for 
Did you mean: 

nginx, redirecting www.domain.com to www.domain.com/en

nginx, redirecting www.domain.com to www.domain.com/en

Hello, i cannot figure out how to make a visible redirect to subdir of domain, the way magento index.php redirect work.

Tried so far to specify in location / following rule: "return $scheme://$host/en;" or  "return 302 $scheme://$host/en;"

it seems the location is changed to correct one, however firefox always return "The page isn't redirecting properly"

after locatoin / configuration has a "location @handler " with "rewrite / /index.php;" which seem to cause problem.

Anyone with same solved solution?

Thank you in advance.