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:
- 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.
- Pointed new instance of 5.2.5 to the existing database -> 301 Redirect.
- Renamed plugins and themes folders in wp-content in existing instance -> 301 Redirect persists.