Skip to content

Instantly share code, notes, and snippets.

@lynettechandler
Last active December 22, 2015 18:29
Show Gist options
  • Save lynettechandler/6513640 to your computer and use it in GitHub Desktop.
Save lynettechandler/6513640 to your computer and use it in GitHub Desktop.
Secure wp files
# secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
# secure other files
<FilesMatch ^((wp-config|wp-load|wp-settings)\.php$)$>
order allow,deny
deny from all
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment