Support » Localhost Installs » http to https by mistake

  • Resolved dkassar


    I’m new to wordpress and I mistakenly changed General settings to https from http, and now the localhost fails to open.

    Is there anyway to revert this?


Viewing 3 replies - 1 through 3 (of 3 total)
  • You should be able to change the wp-options.php file to reflect the correct site URL. I’ve included an article that talks about this procedure, along with changing the site URL in the database if necessary.



    You should able to change “wp-config.php” from root of the project.

    You should add following two lines at the end of file:


    After adding this code, you can not change site_url/home_url from admin panel. So, you can also change home_url/site_url directly from database table wp_options.


    Thread Starter dkassar


    Didn’t seem to work. I had to reinstall WordPress and MAMP.

    Thanks anyways!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘http to https by mistake’ is closed to new replies.