Last active
September 28, 2016 08:28
-
-
Save psaunders88/99e3c4a6d7f14b8b2bcc4fbde3fd7fd1 to your computer and use it in GitHub Desktop.
wordpress htaccess with extra
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 | |
# Added to stop us serving content to internal dummy connections | |
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC] | |
RewriteRule .* - [F,L] | |
#End of added | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
<Files xmlrpc.php> | |
Order allow,deny | |
Deny from all | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment