Changing URL… settings automatically change back
-
So, to begin with – I had the latest version of wordpress running, while I was fixing up my site. I installed it in a sub-directory of my hosting account, associated with a domain name. It was installed and running smoothly in https://www.example.com/1
I used a GoDaddy (provider) feature of moving the site automatically to the root directory. Then the problems began…The site seemed to no longer work, after a while of playing around with different possible solutions (which all pretty much gave me different, but still non-working outcomes) what seemed to work (momentarily) was changing the URL of the website in the MySQL database.
Edit Delete 1 siteurl https://example.com/1 yes
Edit Delete 37 home https://example.com/1 yesWhen I edit both of these lines to the root directory the site loads up beautifully. Success!
However – right after this happens the values seem to change back to the example.com/1 configuration… So, again, the site looses functionality and even if I refresh it a second later – no go.I was unable to find any file in the FTP that contains the line example.com/1 , so I am at a bit of a loss as to why this happens. I don’t see any script responsible for this.
When I tried changing the WB/Site URL values through the admin page (before the site relocation) they seemed to always stay the same… https://www.example.com/1 – the site ponged me that the changes have been made but the values stayed the same
It seems to me somewhere within the system there is a script automatically changing them back when the site loads.I tried hardcoding these lines into the wp-config –
define(‘WP_HOME’,’https://example.com’);
define(‘WP_SITEURL’,’https://example.com’);
– but no results ??Anyone have any suggestions?
- The topic ‘Changing URL… settings automatically change back’ is closed to new replies.