So like so many others I started getting the mildly irritating https warnings when browsing sites in chrome including my own. So one productive day I decided I should try and update that for friendlier browsing. Skimmed some instructional page that featured the advice to just add the ‘s’ to the URL in the Settings>General> tab. It did cross my mind that it wouldn’t be THAT easy to completely crash the site, right? If it was surely there would at least be a warning.. right? and and Undo or something? At least the interface wouldn’t be unreachable.. boy was I wrong!
Anyway, after quite a bit more struggle than was justified I got it going through my FTP that I haven’t used in years by editing the wpoconfig.php file with the URL explicitly defined. I’m grateful that worked but in the interest of undoing it fully I’d like to fix it up completely. The previous Settings>General> now features a greyed out URL (which would have been great last week!).
For whatever reason editing the functions.php file with “update options” didn’t work.
Thanks for any help! I’m a wiser webmaster now.
[ad_2]
Several options are detailed in the documentation: [https://wordpress.org/support/article/changing-the-site-url/](https://wordpress.org/support/article/changing-the-site-url/) ~~Using functions.php is not one of them.~~
Settings>General is greyed out because you have a rule in your wp-config.
You need an SSL certificate in order to use HTTPS. Ask your host about how to set that up.
Sometimes all it takes is a missing semi-colon.
To fix it properly you need to get into your database and edit the siteurl and home urls in the wp_options table.
Here’s some info on how to do that:
To use HTTPS you’ll need to get an SSL certificate first. You can buy one from your hosting provider, or generate a free one from letsencrypt.org if your hosting provider supports it.