Apache Server configuration support - mod_rewrite and IE

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > August 2006 > mod_rewrite and IE





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author mod_rewrite and IE
liefje

2006-08-24, 7:30 pm

ive got a problem specifically with mod_rewrite and internet explorer

we dont want people accessing files by links from other websites so we
have the following setup in .htaccess:


RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://ourwebsite.com/
RewriteRule ^.*$ http://ourwebsite.com/index.html [L]


everything works fine when you click on the link from our website.com


the problem comes in when you right click and select save target as
in firefox it works fine.. but in internet explorer it doesnt work it
redirects and you get to download a copy of index.html


ive tried going around this by changing the .htaccess to the following:



RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://ourwebsite.com/
RewriteCond %{HTTP_USER_AGENT} !^Mozilla/4(.*)MSIE
RewriteRule ^.*$ http://ourwebsite.com/index.html [L]


it still doesnt work.. any ideas?


thanks in advance for your help

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com