htaccess makes directory disappear

htaccess makes directory disappear

Posted by: cpjazz
Posted on: 2008-10-02 03:31:00

Hello everyone,

I have a subdomain pointing to a dreamhost account. When I activate through control panel or manually create the .htaccess file inside a folder in the ftp (I want to password protect it), the directory disappears from the http file index in the subdomain. And inserting the full path in the address bar of the browser gives a 404 page.
Could this be a problem of the subdomain redirection? Does this sound familiar to anyone?

Thanks in advance

Re: htaccess makes directory disappear

Posted by: sXi
Posted on: 2008-10-02 03:57:00

If I'm reading this correctly, it's likely because the calling site doesn't have permission to view the location due to the contents of the .htaccess file.

Can you explain precisely what it is you're trying to accomplish more clearly?


Re: htaccess makes directory disappear

Posted by: cpjazz
Posted on: 2008-10-02 22:46:00

Hello sXi,

I'm trying to password protect a directory. I already thought of a fault of mine in the htaccess file but going thruDreamhost automated htaccess section in the control panel gives the same result.

Thank you

Re: htaccess makes directory disappear

Posted by: WayneD
Posted on: 2008-10-06 18:16:00

I hit the same disappearing behavior, and didn't find a way around it. Once you access the directory and authorize, then the listing includes the directory again. Not what I wanted, but seems to be the way it works.

For the 404 error, should be a bug in your htaccess, try looking at your error log after you access it. (in logs/domainname/http/error.log)

Re: htaccess makes directory disappear

Posted by: cpjazz
Posted on: 2008-10-07 04:01:00

Thank you very much.
Yes 404 was my fault, solved.
And I don have a problem with the disappearing thing, now it's working I even prefer it this way.
Thanks again
Best

Tags: file indexsubdomainhtaccess fileredirectionthanks in advancehello everyonecontrol panel