I’m trying to use a .htaccess file that looks like this :
<FilesMatch "\.(php|tpl)$">
Order allow,deny
Deny from all
</FilesMatch>
... the idea being that I don’t want .php or .tpl files to be accessible from the browser.
But when I test this on an example .php file, I get a "Firefox detects this page redirecting in a way that will never resolve" or something like that. Now, I know what that means, but I can’t get it to just redirect to the main page - essentially, to fail silently.
The site’s main .htaccess is the default .htaccess, with the addition of Options -Indexes and a setting to properly recognize the subfolder in which the test install lives.
I’m sure the answer is relatively simple, but I can’t seem to figure it out. Anyone with advice? Sorry for the bandwidth if I’m overlooking something very simple.
Thanks,
Matt
PS This is Evo 1.0.4, Apache