Support » Localhost Installs » http to https by mistake

  • Resolved dkassar

    (@dkassar)


    Hi,
    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?

    Thanks.

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.

    Ref: https://codex.wordpress.org/Changing_The_Site_URL

    Hello,

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

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

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

    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.

    Thanks

    Thread Starter dkassar

    (@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.