After moving my Wordpress installation to a subfolder, I went to the wp_options table to edit the site_url and home. However, after the website is loaded even once, the home is reset to the actual path.
Let's say the site used to be https://example.com and I moved the Wordpress installation to https://example.com/shop. Whatever I change the home to in the DB, it resets to https://example.com/shop after a page load. I can even set it to apple.com, after a page load it resets.
Same happens if I go to Settings -> General and try to update the field. After I hit save and the page reloads, the value is already reset to the actual path.
The same happens if I deactivate all plugins. Same happens if I migrate all tables to a new database.
So the only way to achieve my wanted result now is via the wp-config.php settings where I have set:
define( 'WP_HOME', 'https://example.com/' ); define( 'WP_SITEURL', 'https://example.com/shop/' ); I'd like to however fix this sh*t on the DB level so I know everything is solid. I also want to implement WP Multisite so I want to be sure all is good.