Release access ONLY to a file that is in root having others with the same name

0

Searching the forum here I found this feature if I do in .htaccess :

<Files *.php> 
    deny from all
</Files>

<Files "meuFicheiro.php">
    Order Allow,Deny
    Allow from all
</Files>

Libero access to the file meuFicheiro.php and block access to all site .

However, consider the case that we have multiple directories and subdirectories and in some of them there are files named

meuFicheiro.php

Ex:

/
/meuFicheiro.php
/ficheiros/meuFicheiro.php
/paginas/meuFicheiro.php
/paginas/ficheiros/meuFicheiro.php

However, I want to release ONLY access to the meuFicheiro.php file that is in the root leaving the others blocked for access.

How to do it?

    
asked by anonymous 26.06.2018 / 23:12

0 answers