mod_rewrite and IE

This is a discussion on mod_rewrite and IE within the Apache Web Server forums, part of the Web Server and Related Forums category; ive got a problem specifically with mod_rewrite and internet explorer we dont want people accessing files by links from other ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-24-2006
liefje
 
Posts: n/a
Default mod_rewrite and IE

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://forum.gruwelijk.com/
RewriteCond %{HTTP_USER_AGENT} !^Mozilla/4(.*)MSIE
RewriteRule ^.*$ http://forum.gruwelijk.com/index.php [L]

it still doesnt work.. any ideas?

thanks in advance for your help :)

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0