note 121947 deleted from apache.setup by cmb
| From: | cmb@php.net | Date: | Thu, 30 Nov 2017 10:57:58 +0000 |
| Subject: | note 121947 deleted from apache.setup by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-209270@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
In the root directory, put a .htaccess file with:
<FilesMatch
"(\.(bak|config|dist|fla|inc|ini|log|psd|sh|sql|json|lock|swp|py|xml|phtml|g)|~)$">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
And in the subdirectories, put:
Deny from all
And, in the web folder, put:
Options All -Indexes