Intercontinental Design Firm
This is our knowledge center. Enjoy!
If you're using WordPress as a CMS, or for better security, you need to hide the fact you're using it as backend. it's known the path WordPress uses, for example, display the stylesheet for a theme:
So it's easy to replace wp-content to any other name, like assets:
Add the following in your wp-config.php, right above:
/** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');
So the entire code is (adding the require_once above):
// CHANGE /WP-CONTENT TO /ASSETS define('WP_CONTENT_FOLDERNAME', 'assets'); define('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME); define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/'); define('WP_CONTENT_URL', WP_SITEURL . WP_CONTENT_FOLDERNAME); /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');