Posted By

burnandbass on 10/30/14


Tagged

wordpress hide


Versions (?)

Rename WordPress folder


 / Published in: PHP
 

Sometimes it is usefull to hide that you're using wordpress. Rename wp-content folder to "media" and add this un wp-settings.php just before including the settings.

  1. define ( 'WP_CONTENT_FOLDERNAME', 'public' );
  2. define ( 'WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME );
  3. define ( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/' );
  4. define ( 'WP_CONTENT_URL', WP_SITEURL . WP_CONTENT_FOLDERNAME );

Report this snippet  

You need to login to post a comment.