Forums / Developer / php in template / Comment43939
Marko Žmak
Thursday 25 August 2005 6:35:15 am
BEcause you might have something like this in the .htacces file:
<FilesMatch "."> order allow,deny deny from all </FilesMatch> <FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html))$"> order allow,deny allow from all </FilesMatch>
If that's the case (and these lines are not commented) your web server won't let you acces .php files (except index.php) under the directory structure where this .htacces file is located.
There are 2 sollutions:
1. Comment these lines (insecure and not recomended, only for testing)
2. put a .htaccess file with this content:
</code> <FilesMatch "\.php$"> order allow,deny allow from all </FilesMatch></code>
in the "files" directory.
Hope it works for you.
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth