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

Reply via email to