Why does RW-R--R--) make .htaccess file available to server but not to browser?

Why does RW-R--R--) make .htaccess file available to server but not to browser?

am 19.07.2007 00:52:32 von TS Moderator1

I was reading "A Comprehensive Guide to .htaccess" at
http://www.javascriptkit.com/howto/htaccess.shtml

It says "You may need to CHMOD the htaccess file to 644 or (RW-R--
R--). This makes the file usable by the server, but prevents it from
being read by a browser."

I am confused. Why does the above mode ng make a file available to
the server but not to the browser.

Thank you.

Re: Why does RW-R--R--) make .htaccess file available to server butnot to browser?

am 19.07.2007 02:47:49 von David McKenzie

Reporter wrote:
> I was reading "A Comprehensive Guide to .htaccess" at
> http://www.javascriptkit.com/howto/htaccess.shtml
>
> It says "You may need to CHMOD the htaccess file to 644 or (RW-R--
> R--). This makes the file usable by the server, but prevents it from
> being read by a browser."
>
> I am confused. Why does the above mode ng make a file available to
> the server but not to the browser.
>
> Thank you.
>
This is because there is an option in httpd.conf to ban files including
..htaccess. You will have to check inside the httpd.conf file, I can't
remember the exact variable.

--
DM davidm@cia.com.au

The funny .sig is in the wash, I am your replacement.

Re: Why does RW-R--R--) make .htaccess file available to server butnot to browser?

am 19.07.2007 18:02:59 von Your Best Friend

It tells the server NOT to send the file to your browser when / if it
requests it.

Reporter wrote:
> I was reading "A Comprehensive Guide to .htaccess" at
> http://www.javascriptkit.com/howto/htaccess.shtml
>
> It says "You may need to CHMOD the htaccess file to 644 or (RW-R--
> R--). This makes the file usable by the server, but prevents it from
> being read by a browser."
>
> I am confused. Why does the above mode ng make a file available to
> the server but not to the browser.
>
> Thank you.
>

--
Thanks,
Bryan K
bk@bkworksproducts.com.info
To reply, remove .com
** PROUD USER OF THUNDERBIRD **