Redirect loop / too many redirects

TinyApps.Org miles at tinyapps.org
Wed Jul 15 21:26:35 MSD 2009


Awesome - thanks so much for the answer, Gena!
Just adding the equal sign after "location" did
the trick!

One last question: is the caret after "rewrite"
required? I read the location syntax page but
still was not clear on what function the caret
would serve when it follows "location = wherever
{ rewrite..."

Yours Gratefully,

Miles


On Jul 15, 2009, at 7:02 AM, Gena Makhomed wrote:

> On Wednesday, July 15, 2009 at 19:25:56, TinyApps.Org wrote:
>
> TO> location /weblog/index.rss {
> TO>     rewrite /weblog/index.rss /weblog/index.rss20 permanent;
> TO> }
>
> location = /weblog/index.rss {
>    rewrite ^ /weblog/index.rss20 permanent;
> }
>
> TO> Firefox: Redirect Loop - Firefox has detected that the server is
> TO> redirecting the request for this address in a way that will never
> TO> complete.
>
> TO> All other redirect rules work - any idea why this one would fail?
>
> url "/weblog/index.rss20" was matched by location "/weblog/index.rss"
>
> location syntax: http://wiki.nginx.org/NginxHttpCoreModule#location
>
> -- 
> Best regards,
> Gena
>
>






More information about the nginx mailing list