最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp config - Unexpected: Wordpress redirects to the WP_HOMEWP_SITEURL value

programmeradmin4浏览0评论

Hello Wordpress colleagues,

I'm working on existing WP instance (5.2.5) having an issue with WP_SITEURL and WP_HOME defined in wp-config.php.

Expected Result: I expect WP_SITEURL and WP_HOME to control links but not cause 301 Redirect.

Actual Result: WP issues a 301 redirect if WP instance is loaded on URL that does not match WP_SITEURL or WP_HOME.

What I have done to debug the problem:

  1. Installed new instance of 5.2.5 with new database. Set WP_HOME and WP_SITEURL to . Loaded the WP Instance and observed no 301 Redirect.
  2. Pointed new instance of 5.2.5 to the existing database -> 301 Redirect.
  3. Renamed plugins and themes folders in wp-content in existing instance -> 301 Redirect persists.
发布评论

评论列表(0)

  1. 暂无评论