Dec 3, 2014 - WordPress    Comments Off on Move content directory for additional security

Move content directory for additional security

Add this to wp-config-sample.php after an update, or add it to wp-config.php. Just after the prefix code. Replace “newdir” with the name of your new directory.

/**
 * Move content directory for additional security
 */
define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/newdir' );
define( 'WP_CONTENT_URL', 'http://'.$_SERVER['SERVER_NAME'].'/newdir' );

Comments are closed.