Forum Moderators: phranque
RewriteCond %{QUERY_STRING} ^redir=(.+)$
RewriteRule . /cgi-bin/redirect-handler.cgi?r=%1 [L]
I assume the result of calling example.com/foo?redir=bar will be /cgi-bin/redirect-handler.cgi?r=redir=bar
It should result in an infinite loop, because the output path matches the rewriterule pattern and the rewritecond