• One of the new features in WordPress 2.6 is the “Ability to move your wp-config file and wp-content directories to a custom location”, but I can’t figure out what I need to do this.

    I see that wp-load.php is to be used to specify the location of wp-config.php (although I’m not sure what exactly I need to change). Will setting the location of wp-config.php change the location of wp-content as well?

Viewing 3 replies - 1 through 3 (of 3 total)
  • As best as I can figure your only option with wp-config.php is to move it up one directory level to be above the wordpress core if you have moved your wordpress core files down in a sub-folder. And to move your wp-content folder you need to add two directives to your wp-config.php file:

    define('WP_CONTENT_DIR', '/library/webserver/documents/site/wp-content');
    define('WP_CONTENT_URL','https://site.com/wp-content');

    it’s worth noting that you can change the name of the folder from wp-content to something else if you want.

    Do note that if you move /wp-content/ plugins MAY break.

    I tried moving wp-content and wp-config and that in principle seemed to work except that the themes could no longer use their stylesheets and images. I guess this would also affect plugins that contain their own stylesheets and graphics.

    The solution for accessing css and image files of themes and plugins would require some form of script to pick up the content (or some htaccess rules)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom location of wp-content in 2.6’ is closed to new replies.