.htaccess and ForceType files without extension?

This is my .htaccess file:

<Files .*>
ForceType application/x-httpd-php
SetHandler application/x-httpd-php
</Files>

<Files mytesting>
ForceType application/x-httpd-php
</Files>

<Files *.asp>
ForceType application/x-httpd-php
</Files>

Is it possible, using the ForceType directive, to allow files without continuing and not to make the selected extensions, for example. mytesting one above?

thank

+5
source share
1 answer

Use <Files *>to match any file.

If you want to map only files that do not have extensions, use <Files [^.]+>.

+5
source

All Articles