Title: HTTP to HTTPS
Last modified: May 3, 2017

---

# HTTP to HTTPS

 *  [AllHeart Web](https://wordpress.org/support/users/allheartweb/)
 * (@allheartweb)
 * [9 years ago](https://wordpress.org/support/topic/http-to-https-17/)
 * Hi…
 * I try almost 10 methods… and nothing work so far…
 * I move [http://www.allheartweb.com/](http://www.allheartweb.com/) to [https://www.allheartweb.com/](https://www.allheartweb.com/)
 * (i just added ssl)
 * if i access [https://www.allheartweb.com/seo](https://www.allheartweb.com/seo)
   it work fine..
 * but if i use [http://www.allheartweb.com/seo](http://www.allheartweb.com/seo)…
   it wont redirect to https… which is [https://www.allheartweb.com/](https://www.allheartweb.com/)
 * I try few plugins.. but it messed my other things like billing portal…
 * Anyway… any trick with htaccess or other way ?

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years ago](https://wordpress.org/support/topic/http-to-https-17/#post-9094914)
 * Make sure that you have WordPress properly setup following this guide: [https://make.wordpress.org/support/user-manual/web-publishing/https-for-wordpress/](https://make.wordpress.org/support/user-manual/web-publishing/https-for-wordpress/)
 *  [Radu](https://wordpress.org/support/users/broseph/)
 * (@broseph)
 * [9 years ago](https://wordpress.org/support/topic/http-to-https-17/#post-9095102)
 * Hello!
 * Don’t try plugins because, yes, they do mess things up most of the time.
 * After you followed the guide above, you’ll also need to perform a redirect in.
   htaccess from HTTP to HTTPS. From my experience, different servers accept different
   codes, but I’ll give you two that usually work most of the time. Only use one.
 * Don’t try these if you are on an Nginx server. These are for Apache, which most
   hosting companies use.
 *     ```
       RewriteEngine On 
       RewriteCond %{HTTP_HOST} ^(www\.)?yourdomain\.com [NC]
       RewriteCond %{SERVER_PORT} 80 
       RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
       ```
   
 * or
 *     ```
       RewriteEngine On
       RewriteCond %{SERVER_PORT} 80
       RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L]
       ```
   
 * Before doing this, backup your .htaccess file by downloading it to your computer.

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

The topic ‘HTTP to HTTPS’ is closed to new replies.

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Radu](https://wordpress.org/support/users/broseph/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/http-to-https-17/#post-9095102)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
