View Single Post
Old 12-04-2002, 04:28 PM  
Gman.357
Confirmed User
 
Join Date: Oct 2002
Location: USA
Posts: 2,796
.htaccess Gurus - help!

Ok. Here's a strange dilemma I'm experiencing. Got an area protected by an http_referer Rewrite cond. Works like a dream for me and apparently most surfers. However, found out that some surfers that should be gaining access to this particular area are getting redirected. Couldn't figure out why, being that 95% of them are having no problems at all. Then I pinpointed that the ones being wrongfully redirected all have one thing in common... they're Mac users. Here's a sample of the .htaccess itself...

AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^http://www.whateversite.com/somedirectory/.* [NC]
RewriteCond %{HTTP_REFERER} !^http://whateversite.com/somedirectory/.* [NC]
RewriteCond %{HTTP_REFERER} !^http://www.whateversite2.com/somedirectory/.* [NC]
RewriteCond %{HTTP_REFERER} !^http://whateversite2.com/somedirectory/.* [NC]

RewriteRule /* http://www.redirectlocation.com/error.html [R,L]

Why would only Mac users be getting sent to the "redirectlocation"? Presuming they are accessing through "whateversite.com" and "whateversite2.com".

Gman.357 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote