Forum Moderators: phranque
There's no way to keep up with all the different variations that turn up, and I've actually seen a site get the index file of a directory cached instead of a page on someone's site.
Is there a way to prevent that from happening, so that any variations will only get picked up and show up as www.example.com/?
It generally happens with /subdirectories/ but I have seen it with a root index page and otherpage.html/?N=M also.
[edited by: Marcia at 3:06 am (utc) on Nov. 19, 2007]
The simplest case, for a completely-static site, would be curable with something like this in the top-level .htaccess file:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^?]*)\?[^\ ]*\ HTTP/
RewriteRule (.*) http://www.example.com/$1? [R=301,L]
Jim