Title: http to https by mistake
Last modified: July 27, 2017

---

# http to https by mistake

 *  Resolved [dkassar](https://wordpress.org/support/users/dkassar/)
 * (@dkassar)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/http-to-https-by-mistake/)
 * 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)

 *  [seanperryman](https://wordpress.org/support/users/seanperryman/)
 * (@seanperryman)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/http-to-https-by-mistake/#post-9358627)
 * 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](https://codex.wordpress.org/Changing_The_Site_URL)
 *  [Nidhi Padia](https://wordpress.org/support/users/nidhipadia2511/)
 * (@nidhipadia2511)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/http-to-https-by-mistake/#post-9362521)
 * 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](https://wordpress.org/support/users/dkassar/)
 * (@dkassar)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/http-to-https-by-mistake/#post-9362546)
 * 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.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 3 replies
 * 3 participants
 * Last reply from: [dkassar](https://wordpress.org/support/users/dkassar/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/http-to-https-by-mistake/#post-9362546)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
