Move WP to Subdirectroy

Also in wp-config.php, make sure to set your WP_HOME and WP_SITEURL variables to the correct URL (subdirectory) you are using

It should look like this:

$host = 'http://' . $_SERVER['HTTP_HOST'] . '/blog/';
define('WP_HOME',$host);
define('WP_SITEURL',$host);

Leave a Comment