Hello all, I currently have a mod-rewrite problem: If you look at the site
http://www.funnycabin.com I have the following mod-rewrite for it but it doesnt seem to work:
########## Error Documents
ErrorDocument 400 /error.php?c=400
ErrorDocument 401 /error.php?c=401
ErrorDocument 403 /error.php?c=403
ErrorDocument 404 /error.php?c=404
ErrorDocument 500 /error.php?c=500
ErrorDocument 502 /error.php?c=502
ErrorDocument 503 /error.php?c=503
########## Rewrite rules to block out some common exploits
RewriteEngine on
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
########## Rewrite rules to make nice URLS
RewriteRule ^view/$/ /index.php?image=$1 [L]
RewriteRule ^rate/$/$ /rate.php?image=$1&rating=$2 [L]
RewriteRule ^leave/$ /leaving.php?site=$1 [L]
Anyone know what could be the problem?
Thank you very much