I have a big problem and I am somewhat panicking about this one. My website didn't have https enabled so i went to the settings panel, changed the website link to https://andthewebsitesname. Now when I want to login, it just sends me to the 404 page saying my connection for this site is not secure. How can I undo this? I can't login right now.

  • 2
    Did you actually get an SSL certificate? You need one to use https. Dec 24, 2020 at 1:59

1 Answer 1


If you have access to the database (for example, using phpMyAdmin), you can change the values in table "wp_options" -- the fields are near the top... "site_url" and "home"

You can also set this in the wp-config.php file.

define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );


  • You sir, are a godsent.
    – Squary94
    Dec 23, 2020 at 21:07
  • This didn't specifically work for me but when I went to the website that hosts my website, I was able to install SSL and now I managed to login again.
    – Squary94
    Dec 23, 2020 at 21:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.