Ciao a tutti, stò tentando di proteggere un file residente nel server.

Ho creato il file htaccess così;
codice:
AuthName "Amministrazione"
AuthType Basic
AuthUserFile /web/htdocs/www.site.it/home/.htpasswd
Require valid-user

<Files ~ "./mio.php$">
Require user admin
</Files>
Io vorrei proteggere con password solo il file mio.php , ma nel modo che ho fatto non mi funziona.
Come faccio?