Hi there folks!
I want Apache not to parse any file in a directory, so that it would send a .php file straight to the browser. I guess the best thing to do this would be using the .htaccess file within it.Code:<FilesMatch "\."> SetHandler default-handler </FilesMatch>
And it works.
Now my problem is, that I still want index.php to be parsed, but nothing else. When i come up with another <Files> or <FilesMatch>-command, it does not overwrite the first one.
I guess it might work with <Directory> or <Location>-commands in my .htaccess file but that will come up with a server error 500, stating that <Directory or <Location is not allowed.
Am I doing something terribly wrong? I'm out of ideas
Many thanks in advance!


Reply With Quote



Bookmarks