Webmaster tricks: List all content of directory & Force plain text out of most executable files

The .htaccess file should be in the pertaining folder, with the following lines (first line is to list directory files, the rest forces most files to be read as plain text - For some reason php keeps executing nonetheless, hence I scripted such that all php files are converted from abc.php to abc_php):

Options +Indexes
<FilesMatch "(.+)$">
ForceType text/plain
</FilesMatch>

This entry was posted in Technical. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.