Hi,
I'm writing a website that allows people to asses a web page's readability (Flesch-Kincaid Reading Ease, thank kind of thing).
Ideally I'd like the user to be able merely to preceed the target URL with mine (like many mirror sites do), and hey presto they can see the results.
I'm guessing it's got to be done with mod_rewrite, but I'm not sure how to write it, especially given that URLs may contain so much potential junk.
How would I say:
if request is mysite.com/anything-at-all
).
redirect to mysite.com/?site=anything-at-all
Except in cases where the request is for:
just for
mysite.com/
The request is for
mysite.com/ajaxresponse.php?target=something
Where the request is for
about.php
orloading.gif
Sadly everything that I have tried so far ends up in an redirect loop...
Many thanks,
Jack