Redirect loop / too many redirects

Gena Makhomed gmm at csdoc.com
Wed Jul 15 22:06:52 MSD 2009


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