Mike Selander
http://bit.ly/1GdE3Ge
define( 'WP_AUTO_UPDATE_CORE', true );
*I include this with hesitation. It's one of the most compromised plugins in the entire repo
define ( 'FORCE_SSL_ADMIN', true );
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
define( 'DISALLOW_FILE_EDIT', true );
define( 'DISALLOW_UNFILTERED_HTML', true );
add_filter( 'xmlrpc_enabled', '__return_false' );
# START XML RPC BLOCKING
Order Deny,Allow
Deny from all
# FINISH XML RPC BLOCKING
ini_set('display_errors',0);
error_reporting(E_ALL|E_STRICT);
chown www-data:www-data -R *
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chwon -R www-data:ftp-user wp-content (where ftp-user is what user you are using to upload the files)
chmod -R 775 wp-content
update wp_posts set ping_status='closed' where ping_status='open'
MikeSelander.com
@Mike_Selander
Old Town Media
http://bit.ly/1GdE3Ge