Sunday 21 July 2013

Moving the wp-content directory



When you move the /wp-content folder, you need to define the new location in the wp-config.php file so that WordPress knows where to find those necessary files. You can define the new path to the /wp-content folder by adding these lines of code to the wp-config.php file (replacing newfolder with the name of the folder you just created):


define (‘WP_CONTENT_DIR’, $_SERVER[‘DOCUMENT_ROOT’].’ /newfolder/wp-content’);

define (‘WP_CONTENT_URL’, ‘http://yourdomain.com/newfolder/wp-content’);

0 comments:

Post a Comment