N
N
Nikita Samokhvalov2014-01-06 00:50:33
htaccess
Nikita Samokhvalov, 2014-01-06 00:50:33

How to block access to files through .htaccess?

It is required from time to time to close access to some files lying on the server. Mentions of these files will be automatically recorded in .htaccess, which lies at the root of the site:

<Files file.ext>
  deny from all
</Files>

Question: how to correctly specify the path to a file that is somewhere in a subdirectory (catalog/catalog/file.ext)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2014-01-06
@niksamokhvalov

It is possible that AllowOverride None is specified in the host setting - then there is no sense from .htaccess.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question