diff --git a/config/public/wp-config.php b/config/public/wp-config.php index 6151b754e..04f4a930f 100644 --- a/config/public/wp-config.php +++ b/config/public/wp-config.php @@ -39,9 +39,14 @@ /** Database Charset to use in creating database tables. */ define("DB_CHARSET", "utf8"); +/** Support WORDPRESS_DIR */ +$siteurl = getenv("WORDPRESS_DIR"); /** Allows both foobar.com and foobar.herokuapp.com to load media assets correctly. */ -define("WP_SITEURL", "http://" . $_SERVER["HTTP_HOST"]); +if (!empty($siteurl)) + define("WP_SITEURL", "http://" . $_SERVER["HTTP_HOST"] . "/" . $siteurl); +else + define("WP_SITEURL", "http://" . $_SERVER["HTTP_HOST"]); /** WP_HOME is your Blog Address (URL). */ // define('WP_HOME', "http://" . $_SERVER["HTTP_HOST"]);