Created
October 2, 2015 08:26
-
-
Save digital-thinking/46bad4d8940b49f50266 to your computer and use it in GitHub Desktop.
Wordpress/Apache restrict access to subfolders (disable directory browser)
This file contains 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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress | |
Options -Indexes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment