Hi..

I made a .htaccess file. and then uploaded it to my server.. but everytime I do it deletes it automatically.. it is hidden directly.. or sure deleted from there.. so what is the problem!!!!!????

My hosting account is Linux, WebServer : Apache.. so what is the problem? and how to solve it?

Cheers..

    .htaccess by default is hidden on some systems. See if that is the case by doing a ls-al on the folder...

      Are you sure it is not just hidden? When I upload an .htaccess file I can not see it either (in ftp), but if I use the absolute path to download, or edit it, I can. You may need to telnet in and use command line to do work on it. If it actually does delete it, wow, your server is doing some funky stuff. To test if it has uploaded type the url into the browser i.e.

      http://your url to file/.htaccess

        You are right..

        It is hidden only..

        Okay now this problem is solved.. but the other problem is that in my .htaccess file :

        "
        AuthUserFile /pass2
        AuthGroupFile /pass2
        AuthName AllowLocalAccess
        AuthType Basic

        order deny,allow
        deny from 217.164.249.134
        allow from all
        "

        The IP 217.164.249.134 is mine.. I want to try blocking it from transfering data from the folder "/pass2" into my PC..

        I mean in my website : http://www.alaedin.com/pass2/tetetet.rm

        So I want to deny that RM file.. so that IP can't access it or download it to his machine.. is it possible?

        where must I put this file? And must I change in this script? or it is right?

        Please help me in this problem..

        Cheers..

          Also, some hosts do not allow .htaccess files. I wonder if there's a way for them to block these files???

            And also must I put it without name? or can I name it for example : "test.htaccess"? or must I name it : ".htaccess" (Without name)??

            Please help me..

            Cheers..

              Most configurations require it without a name. This would be specified in the httpd.conf file.

                Write a Reply...