Redirect loop / too many redirects

TinyApps.Org miles at tinyapps.org
Thu Jul 16 11:46:02 MSD 2009


Thanks, Gena!

On Jul 15, 2009, at 8:06 AM, Gena Makhomed wrote:

> On Wednesday, July 15, 2009 at 20:26:35, TinyApps.Org wrote:
>
> TO> Just adding the equal sign after "location" did the trick!
> TO> One last question: is the caret after "rewrite" required?
>
>>> location = /weblog/index.rss {
>>>   rewrite ^ /weblog/index.rss20 permanent;
>>> }
>
> caret is regexp. ( ^ Match the beginning of the line )
>
> http://perldoc.perl.org/perlre.html#Regular-Expressions
>
> yes, regexp here required by rewrite syntax:
>
>    rewrite regex replacement flag
>
> http://wiki.nginx.org/NginxHttpRewriteModule#rewrite
>
> -- 
> Best regards,
> Gena
>
>






More information about the nginx mailing list