How can I move the wp-content folder?

Posted OnOct 31, 2013     CategoryDevelopment, Question & Answer     CommentsNo comment

How can I move the wp-content folder?

In some instances, or even just as a personal preference, you may wish to move the wp-content folder. The wp-content folder is what holds your Themes, Plugins, and any Media (such as images) that you upload.

To change where it resides, you will need FTP/SFTP/SSH access to your server.

Step 1) Log in to your server with FTP/SFTP/SSH

Step 2) Locate and open wp-config.php

Step 3) Define two constants as below, ensuring to change them to suit your needs.

define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/path/to/my/wp-content' );
define( 'WP_CONTENT_URL', '' );

Step 4) Save the changes made to wp-config.php

Leave a Reply

Your email address will not be published. Required fields are marked *

Send this to friend