[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] RewriteEngine not allowed here .htaccess



Hi everyone... I have a slight problem with a client in a virtual 
server (Cobalt RAQ4) that would like to stop hotlinking from happening 
on some of his directories.  This .htaccess file (Below) was used on 
another server (Not Cobalt but still red hat Linux) and it worked 
fine... for some reason it will not work on the Cobalt Rqa4 server. (I 
did change the "WEBSITENAME" and "XXX.XX.XXX.XX" for the site name and 
IP address)

AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !>http://www.WEBSITENAME.com [NC]
RewriteCond %{HTTP_REFERER} !>http://WEBSITENAME.com [NC]
RewriteCond %{HTTP_REFERER} !>http://XXX.XX.XXX.XX [NC]
RewriteRule /* http://www.WEBSITENAME.com/index.html [R,L]


I check the error logs on the server and this is what I see...

[Tue Mar 12 20:38:42 2002] [alert] [client 
XX.XXX.XX.XXX] /home/sites/site4/web/main/test/.htaccess: RewriteEngine 
not allowed here

I figure it is something as simple as adding a line in the access.conf 
file or something... but I am not a pro (YET) I don't ask unless I am 
really stumped and we have tried a number of possible solutions 
presented to us so far and unfortunately none work so far. 

Any suggestions or help would be appreciated.

Regards,
Chris Curlette
DeSign Co.
RipQ.com