Redirection problem again in new rules.

Ph. Gras ph.gras at worldonline.fr
Thu Apr 14 15:18:16 UTC 2016


Le 14 avr. 2016 à 16:03, Muhammad Yousuf Khan <sirtcp at gmail.com> a écrit :

> Redirect 301 /aaaa/bbbbbbb /aaaaa/bbbbbb.html
> 
> Now i have converted this rule in nginx like this 
> 
> location /aaaa/bbbbbbbb {
> rewrite ^(.*)$ /aaaa/bbbbbbbbbb.html redirect;
> }
> 

You should use break instead redirect :
http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite


More information about the nginx mailing list