Skip to content

Instantly share code, notes, and snippets.

@psaunders88
Last active September 28, 2016 08:28
Show Gist options
  • Save psaunders88/99e3c4a6d7f14b8b2bcc4fbde3fd7fd1 to your computer and use it in GitHub Desktop.
Save psaunders88/99e3c4a6d7f14b8b2bcc4fbde3fd7fd1 to your computer and use it in GitHub Desktop.
wordpress htaccess with extra
# 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