Move the wordpress wp-content is for wordpress security if you move this to an unexpected location any hackers looking to target this area won’t be able to find it, or it will make it more difficult to find.
To change the location of the wp-content is quite simple as the location of this folder can be configured in your wp-config.php file.
All you have to do is add a new variable WP_CONTENT_DIR and change the location of your wp-content folder.
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/YourNewDirectory/wp-content' );
To change the location of the wp-content URL there is another variable you can define in the wp-config.
define( 'WP_CONTENT_URL', 'https://www.santoshkori.com/blog/content/wp-content' );
0 Comments.