So I tried changing the site-url and home in wp-config.php from
define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/');
to
define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/blog');
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/blog');
The website opens just fine, but the CSS and JS files are now getting picked up from
'wp.domain.com/blog/wp-content/....'
instead of
'wp.domain.com/wp-content/...'
and so the CSS and JS files are unavailable. I also tried doing the wp-options update but couldn't change anything.
Is there a solution or am I following the wrong process maybe?
Thanks!
question from:
https://stackoverflow.com/questions/65641027/trying-move-my-wordpress-website-hosted-using-nginx-and-bitnami-to-a-different-u 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…