[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] RAQ550 - HTaccess problem
- Subject: Re: [cobalt-users] RAQ550 - HTaccess problem
- From: "Brian N. Smith" <support@xxxxxxxxxx>
- Date: Sat Jun 21 13:17:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> Hi,
>
> I make a .htaccess file so no files can download from my domain from an
> other domain.
> (some other websites have a download link on his site to download the
files
> from my server.)
>
> In the ,htaccess file I vave the follow:
> RewriteEngine on
> RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$ [NC]
> RewriteRule .*\.(gif|jpg|jpeg|bmp|exe|zip)$
http://www.domain.com/block.php
> [R,NC]
>
> I change domain.com to my own site!
>
> This will give an 500 error
> Anyone tips to make this wile working?
tail -f /var/log/httpd/error
Refresh your screen.
Capture the output, it tells you what is wrong!
Thanks,
Brian N. Smith
NuOnce Networks
www.nuonce.net
--
This message has been scanned for viruses and
dangerous content by MailScanner & F-Prot, and is
believed to be clean.