You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dotan Cohen <do...@gmail.com> on 2006/05/26 18:28:05 UTC

[users@httpd] .htaccess question

I am learning a bit of php and saw that this code is recommended to be
placed in .htaccess to prevent .inc files from being called in the
browser:
<Location ~ "/[^ ](?=\.inc(\?[^ ]*)?)/">
   Options None
   Order Allow, Deny
   Deny from All
   AllowOverride None
   Satisfy All
</Location>

Why it is using <Location> and not <Files> or <File>?

Also, is there any difference between <Files> and <File>? What is the
recommended wording?

Thanks.

Dotan Cohen
http://linux-apache-mysql-php.org/
29