Redirection problem again in new rules.

Muhammad Yousuf Khan sirtcp at gmail.com
Thu Apr 14 14:03:19 UTC 2016


Hi,


there are multiple apache redirection rules that were working successfully.
for example something like this

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;
}


i also tried adding "permanent" and rewrite line but also didn;t wrok.

now all redirection rules are keep giving error "redirection loops".
and when i disable the rule things back to normal. there is no duplication
happening as far as config is concern. i can confirm.

can you guys please advice how can i troubleshoot this and fix the issue.

your friendly advice is highly appreciated.

Thanks,
Yousuf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160414/8a362737/attachment.html>


More information about the nginx mailing list