Title: WP setting set to HTTPS instead of HTTP
Last modified: July 5, 2018

---

# WP setting set to HTTPS instead of HTTP

 *  [LB2Rup](https://wordpress.org/support/users/lb2rup/)
 * (@lb2rup)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp-setting-set-to-https-instead-of-http/)
 * By mistake i changed the setting i WP menu from HTTP to HTTPS on WordPress-Adress(
   URL) and Website-adress (url).
 * Now i cant access other pages that the start page, and have no access via 2-rup.
   dk/wp-admin
 * I can go in via FTP, but which file do i have to replace (from Back up), so that
   the HTTPS mistake from the WordPress Settings mistake i made, will be replaced
   by my Backup file?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-setting-set-to-https-instead-of-http%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [LB2Rup](https://wordpress.org/support/users/lb2rup/)
 * (@lb2rup)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp-setting-set-to-https-instead-of-http/#post-10464574)
 * I’ve made a lot of changes right before i messed up, by typing https
 * So if anyone can tell me the name of the file to change/upload to solve this 
   problem, I will be very greatfull
 *  [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp-setting-set-to-https-instead-of-http/#post-10464580)
 * You can put these lines of code in your theme’s functions.php:
 *     ```
       update_option( 'siteurl', 'http://example.com' );
       update_option( 'home', 'http://example.com' );
       ```
   
 * change the example.com to your own domain of course.
 * Then you can remove those lines again.
    -  This reply was modified 7 years, 10 months ago by [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/).
 *  Thread Starter [LB2Rup](https://wordpress.org/support/users/lb2rup/)
 * (@lb2rup)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp-setting-set-to-https-instead-of-http/#post-10464605)
 * I will try that 🙂
 * Many Thanks
 *  Thread Starter [LB2Rup](https://wordpress.org/support/users/lb2rup/)
 * (@lb2rup)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp-setting-set-to-https-instead-of-http/#post-10464623)
 * Hi Rogier
 * It worked
 * Thank you so much for your help. You just saved my day 🙂
 * WKR
 * Lars

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WP setting set to HTTPS instead of HTTP’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [LB2Rup](https://wordpress.org/support/users/lb2rup/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/wp-setting-set-to-https-instead-of-http/#post-10464623)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
