Welcome to WebmasterWorld Guest from 54.147.63.124

Forum Moderators: bakedjake

Message Too Old, No Replies

A .htaccess problem on dedicated sever

but no problem on other sites, but shared sever.

     
9:25 pm on Apr 10, 2003 (gmt 0)

New User

10+ Year Member

joined:Mar 12, 2003
posts:37
votes: 0


I have a website with alot of pictures and about 500.000 unique visitors a month, so I use alot of bandwidth, but I have found out that some other are linking to some of my pictures directly and that suck.

Then I tryed this .htaccess which worked fine on another page, but on a shared hosting.

here is the code
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://www.mydomain.com [NC]
RewriteCond %{HTTP_REFERER}!^http://mydomain.com [NC]
RewriteRule .*\.(jpg¦JPG)$ [mydomain...] [R,L]

but if I upload the site comes with a white site that says forbidden and this is on a dedicated server (linux)

hmm wierd.

can anybody help

zeus

10:19 am on Apr 11, 2003 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38048
votes: 12


A couple of related threads with different versions of the above:

[webmasterworld.com...]
[webmasterworld.com...]

2:09 pm on Apr 11, 2003 (gmt 0)

New User

10+ Year Member

joined:Mar 12, 2003
posts:37
votes: 0


Thanks Brett
2:33 pm on Apr 11, 2003 (gmt 0)

New User

10+ Year Member

joined:Mar 12, 2003
posts:37
votes: 0


Hmm this still dont work I still get this message:

Forbidden
You don't have permission to access / on this server.

Apache/1.3.27 Server at www.mydomain.com Port 80

This I used this
AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On

RewriteCond %{HTTP_REFERER}!>http://www.mydomain.com [NC]
RewriteCond %{HTTP_REFERER}!>http://mydomain.com [NC]
RewriteCond %{HTTP_REFERER}!>http://my ip [NC]

RewriteRule /* [mydomain.com...] [R,L]


And I have now tried many different types of .htaccess

zeus

10:30 am on Apr 16, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 5, 2003
posts:380
votes: 0


make sure you have a valid index.(php.html) document, and that the global execute bit is set for your web root.

i.e. "html" or "htdocs" shoudl have permissions rwxrwxr-x