PDA

View Full Version : more htaccess rewrite



pghcollectibles
05-18-2009, 02:24 PM
i thought this is supposed to work. i want to redirect anyone who looks for a page with msgimport in it (roundcube vulnerability)



RewriteCond %{REQUEST_URI} ^/msgimport.*
RewriteRule ^/(.*)$ /error.php?e=403 [F]


but that didnt work. is there a typo somewhere?

shadmego
05-18-2009, 02:36 PM
try removing the carat " ^ " as (if I'm correct) indicates the beginning of the file ...

pghcollectibles.com/msgimport. will not match

/msgimport.pghcollectibles.com will ....


again, I'm not sure, but I think that's the way it works. If not, I'm WAY off base.

pghcollectibles
05-18-2009, 04:50 PM
i thought i should be setting a condition but this is all that was necessary:


RewriteRule ^.*msgimport.*$ /error.php?e=403 [F]