Created
April 3, 2014 13:59
-
-
Save shield-9/9954908 to your computer and use it in GitHub Desktop.
Protect DB information from human error in server configuration settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Files "wp-config.php"> | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteRule ^(.*)$ - [R=404,L] | |
| </IfModule> | |
| <IfModule !mod_rewrite.c> | |
| Order deny,allow | |
| Deny from all | |
| </IfModule> | |
| </Files> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.