❓ What happened?
My wordpress instance was hosted at https://kayg.org, however I replaced it with Quartz before exporting / importing content. Therefore, I need it accessible over at https://wp.kayg.org so I can squeeze some content out and decommission it for good. I tried to access the instance over the private IP address directly by exposing the IP with tailscale subnet routers… but that did not work because the site is configured to be available only over HTTPS and at a specific address. 😔
🎤 How do we fix this?
- Explicitly add these values to the
wp-config.php
file that define what the site’s URL is: - Change the
siteurl
value in the mariadb database too in thewp_options
column. This can be done with a GUI like Adminer or PhpMyAdmin or over the command-line. This is how it’s done over the command-line:- Open the database as the root user:
- Update the
siteurl
option in thewp_options
column.
And then the broken homepage and the admin page show up as intended!
👓 References
https://www.wpbeginner.com/wp-tutorials/how-to-change-your-wordpress-site-urls-step-by-step/