Forum Moderators: phranque
Thanks to lots of help form here in the past, I have a bunch of wonderful rewrite rules in place. eg:
Rewrite ^/fakedir/var1/var2/ realpage.php?var=$1&var2=$2
These work fine when a URL is apssed to them correctly, however, while wandering through my Google SiteMaps errors I noticed a bit of an issue.
Somehow, Google is picking up:
[mysite.com...]
*without* any other variables.
This then gets re-written by mod-rewrite in an infiniste loop to:
musite.com/fakedir/fakedir/
mysite.com/fakedir/fakedir//fakedir//
mysite.com/fakedir/fakedir//fakedir///fakedir//
appending '/fakedir/' each time in a horrible loop.
How do I stop mod_rewrite re-processing these rewritten URLS over and over?
I've tried adding:
ReWriteOptions MaxRedirects=3
but this doesn't appear to do anything in my set up.
Can anyone help?
TIA