Thread: .htaccess help
View Single Post
Old 05-31-2001, 04:53 PM  
Web_Mistress
Confirmed User
 
Join Date: Feb 2001
Location: Las Vegas, NV
Posts: 374
.htaccess help

I've had my host try, and I've tried, and I can't get a .htaccess to work, darn it. I want something that will go to a 404 error page, and prevent hotlinking.

I tried this:

ErrorDocument 403 http://www.xxx-free-porn.net/404.html
ErrorDocument 404 http://www.xxx-free-porn.net/404.html
ErrorDocument 500 http://www.xxx-free-porn.net/404.html

AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.xxx-free-porn.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xxx-free-porn.net/.*$ [NC]
RewriteRule .*$ / [R]


And every page you type in just bounces right back to the main page. What am I doing wrong? I tried searching on a few boards, and I can't find the .htaccess tutorials.

Thanks alot.
Web_Mistress is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote