Rename WP-Content folder to Hide WordPress


Rename WP-Content  folder to Hide WordPress

To do so, add this to your wp-config file, at the bottom, just before wp-settings.php are included:

define ( 'WP_CONTENT_FOLDERNAME', 'media' );
define ( 'WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME );
define ( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/' );
define ( 'WP_CONTENT_URL', WP_SITEURL . WP_CONTENT_FOLDERNAME );

Then, simply rename your directory from wp-content to “media”

Tags:

Comments & Responses

You must be logged in to post a comment.