Rename WordPress folder


/ Published in: PHP
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.