Title: Switched Site To HTTPS &#8211; Still Runs HTTP
Last modified: November 23, 2018

---

# Switched Site To HTTPS – Still Runs HTTP

 *  [mrrobtfp](https://wordpress.org/support/users/mrrobtfp/)
 * (@mrrobtfp)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/switched-site-to-https-still-runs-http/)
 * Hi WordPress volunteer members, your input on this much appreciated.
 * I’ve switched from HTTP to HTTPS to optimize my site for SEO.
 * I did this by changing the general settings in WordPress for both site address
   URL and WordPress Adress URL to HTTPS.
 * It seems to have worked BUT if I type in the URL with HTTP it will not redirect
   to HTTPS until I click to a new page or refresh the current page.
 * Essentially HTTP & HTTPS protocols works apart and return the same page content.
 * How do I solve this so that http will redirect automatically to HTTPS?
 * Is it a caching problem? Do I need to set up a server 301 Http redirect? Somehow
   delete the HTTP registration in Google Search Console?
 * Advice much appreciated. Thanks!

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 6 months ago](https://wordpress.org/support/topic/switched-site-to-https-still-runs-http/#post-10911211)
 * Set up a 301 redirect in your .htaccess
 * [https://moz.com/community/q/proper-301-redirect-code-for-http-to-https](https://moz.com/community/q/proper-301-redirect-code-for-http-to-https)
 *  Thread Starter [mrrobtfp](https://wordpress.org/support/users/mrrobtfp/)
 * (@mrrobtfp)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/switched-site-to-https-still-runs-http/#post-10911244)
 * Thanks for the reply Steven,
 * 1. Do you recommend the code that is offered in the reply on the thread you linked
   to?
 * > RewriteEngine On
   >  RewriteCond %{HTTPS} off RewriteRule ^(.*)$ [https://%](https://%){
   > HTTP_HOST}%{REQUEST_URI} [L,R=301]
 * 2. I’m very inexperienced when it comes to inserting code (I don’t even know 
   how to access the .htaccess) and I’m worried I’ll muck this up somehow.
 * Do you have a link for a beginner’s guide to first time coding by chance?
 * Appreciate your help, you guys do good work here.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 6 months ago](https://wordpress.org/support/topic/switched-site-to-https-still-runs-http/#post-10911522)
 * 1. Yes.
 * 2. Download it via FTP or your hosting control panel’s file manager app, edit
   with Notepad, and upload.

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

The topic ‘Switched Site To HTTPS – Still Runs HTTP’ is closed to new replies.

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/switched-site-to-https-still-runs-http/#post-10911522)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
