.htaccess not working with new host

Discussion in 'Apache' started by Goran, Mar 3, 2008.

  1. #1
    Just got new hosting and I have transferred my .htaccess file to the public_html directory. However nothing I do with the .htaccess file seems to be working. I believe Apache is ignoring my .htaccess file completely.

    I found this: http://httpd.apache.org/docs/1.3/misc/FAQ.html#htaccess-work
    Could this be the problem? The server is running Apache 1.3.39 (unix)

    My .htaccess file contains this:
    <Limit GET POST PUT>
    order deny,allow
    deny from all
    allow from 131.151
    </Limit>
    Code (markup):
    This .htaccess works fine with my old 1and1.com host. But not on the new server.

    Would the solution provided by the apache link above work? Is there any other way I can block IP ranges (or allow only certain IP ranges) with a relatively low resource/bandwidth script? Thanks
     
    Goran, Mar 3, 2008 IP
  2. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #2
    You can ask your new host, if they enable .htaccess for users
     
    gate2vn, Mar 5, 2008 IP
  3. schoash

    schoash Active Member

    Messages:
    291
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Maybe the new host is not using apache?
     
    schoash, Mar 5, 2008 IP