Ich habe ein Problem mit einer .htaccess-Datei. Ich setze ein PHP-Skript ein, welches config.php und index.php im selben Ordner hat. Logischerweise soll config.php passwortgeschützt sein - index.php sollte aber frei zugänglich sein. Der Passwortschutz für alle Files funktioniert. Mit dem Ausschliessen habe ich so meine Probleme...
Wie folgt habe ich es versucht:
- Code: Select all
<Files index.php>
<Limit GET,POST>
order allow,deny
allow from all
deny from none
</Limit>
</Files>
Auch Varianten ohne "deny from none", ohne "Post" bei Limit, mit Abstand statt Komma bei GET,POST...
Kann mir jemand weiter helfen? So langsam gehen mir die Ideen aus...
Gruss,
Nabla