I have written this simple .htaccess
file on my localhost for testing:
RewriteEngine on
RewriteRule ^(.+)$ $1a
RewriteRule ^(.+)$ $1b
Now requesting http://localhost/test/x
, I get the error Forbidden
on /test/xa/xba/xa/xbba/xa/xba/xa/xbbba/xa/xba/xa/xbba/xa/xba/xa/xbbbba/...
I don't understand why this happens, since I don't use the [N]
flag, or anything else, that should cause mod_rewrite to recurse. Also, even if it did recurse, I would expect /test/xabababababababababa...
not that nearly tree looking pattern above.
Can anyone tell me what's going on?