PDA

View Full Version : My .htaccess file wont work


Jesper Møller
10-13-2006, 04:54 AM
I hope this is the right place for this question
For some reason my .htaccess wont work

For some minutes ago 209.160.40.236 came true and posted a viagralink on my forum.:mad: Even thoug i got both the IP ( deny from 209.160. ) and the CIDR( deny from 209.160.0.0/18 209.160.64.0/20 ) in the htaccess file. :confused:

I have oploadet a copy of the htaccess file as a txt file.
http://www.mylon.dk/htaccess.txt

Can someone tell me what i have done wrong :)


(Btw: the .htaccess file CHMOD is 644)

vinyl-junkie
10-14-2006, 07:55 AM
What version of Apache are you running? Unless it's 1.3 and later, your second "deny from" directive won't work. See this page (http://httpd.apache.org/docs/1.3/mod/mod_access.html) for more information.

Jesper Møller
10-14-2006, 12:01 PM
Im not shue wath version it is .. but it shud be1.3 or newer ... its a one.com (b-one.com) site

vinyl-junkie
10-14-2006, 05:34 PM
You might want to verify the Apache version. Also, try deleting that second "deny from" directive and see what that does for you.

Jesper Møller
10-14-2006, 05:40 PM
I have mail the suport ... waiting for answer

What do you meen by 2.directive ??
Ther ar many "deny frome"

vinyl-junkie
10-14-2006, 05:52 PM
What do you meen by 2.directive ??
Ther ar many "deny frome"
The second directive you mentioned in your original post:

deny from 209.160.0.0/18 209.160.64.0/20

Jesper Møller
10-14-2006, 05:56 PM
Ok ...
If you take a look at http://www.mylon.dk/htaccess.txt
youll see i have a lot of those ;-)