Title: SSL &#8211; Getting http instead of https
Last modified: August 20, 2016

---

# SSL – Getting http instead of https

 *  [Oded Ben-Ami](https://wordpress.org/support/users/oded-ben-ami/)
 * (@oded-ben-ami)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/)
 * Hi,
 * I hope you can help me with this problem.
 * I have SSL installed.
 * When I enter URLs in the browser (with the exception of Google Chrome), for example:
   
   odedbenami.com/consultation odedbenami.com/disclaimer
 * It automatically becomes preceded with an http instead of https. If I manually
   change this to https, it will change without trouble. However, I’m unable to 
   effect the initial addition from http to https.
 * My WordPress settings > General
    are as follows:
 * WordPress Address (URL):
    [https://odedbenami.com/wordpress](https://odedbenami.com/wordpress)
 * Site Address (URL):
    [https://odedbenami.com](https://odedbenami.com)
 * As you can see, they are both with https.
 * Can anyone help me?
 *  ~ Oded Ben-Ami

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/page/2/?output_format=md)

 *  [Greg](https://wordpress.org/support/users/jgs/)
 * (@jgs)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600162)
 * If you’re looking to force SSL on all pages and have mod_rewrite enabled, you
   can add this code to your .htaccess file:
 *     ```
       RewriteEngine On
       RewriteCond %{SERVER_PORT} 80
       RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R,L]
       ```
   
 *  [supah](https://wordpress.org/support/users/supah/)
 * (@supah)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600168)
 * this works for loading pages, but how do i modify the calling of things like 
   web fonts and style sheets? (settings are set for https, rewrite in htaccess 
   is there, but the pages are missing their style, and come up as non-secure at
   whynopadlock.com)
 *  [Greg](https://wordpress.org/support/users/jgs/)
 * (@jgs)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600204)
 * I looked at your page, and the styles appear to be there, everything loads ok,
   but I see the rewrite isn’t grabbing a URL in your themes stylesheet, so you 
   have a mixed-security page.
 * Try this instead:
 *     ```
       RewriteEngine On
       RewriteCond %{HTTPS} !=on
       RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
       ```
   
 *  Thread Starter [Oded Ben-Ami](https://wordpress.org/support/users/oded-ben-ami/)
 * (@oded-ben-ami)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600218)
 * jgs,
 * Below is my .htaccess.
    Can you please tell me where to insert your code.
 * Thank you
 * Options +FollowSymLinks
    # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine
   On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
 * RewriteEngine On
    RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ [https://odedbenami.com/$1](https://odedbenami.com/$1)[
   R,L]
 * </IfModule>
 * # END WordPress
 *  Thread Starter [Oded Ben-Ami](https://wordpress.org/support/users/oded-ben-ami/)
 * (@oded-ben-ami)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600219)
 * jgs,
 * I just realized that the folks at my hosting company completely changed the content
   of my .htaccess file, perhaps they took out something that they shouldn’t have.
 * Below is the .htaccess file before they modified it.
    Could you please tell me
   wether I should use the old or the new/modified and where to insert the code 
   that you posted.
 * Thank you
 * Options +FollowSymLinks
    # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine
   On
 * RewriteCond %{HTTP_HOST} ^odedbenami\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.
   odedbenami\.com$ RewriteRule ^(.*)$ “https\:\/\/odedbenami\.com\/$1” [R=301,L]#
   RewriteBase / #RewriteRule ^index\.php$ – [L] #RewriteCond %{REQUEST_FILENAME}!-
   f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule . /index.php [L] </IfModule
   >
 * # END WordPress
 *  [Greg](https://wordpress.org/support/users/jgs/)
 * (@jgs)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600221)
 * Try this:
 *     ```
       Options +FollowSymLinks
   
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
   
       RewriteCond %{HTTPS} !=on
       RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
       </IfModule>
       # END WordPress
       ```
   
 *  Thread Starter [Oded Ben-Ami](https://wordpress.org/support/users/oded-ben-ami/)
 * (@oded-ben-ami)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600223)
 * I don’t see any change.
 *  [Greg](https://wordpress.org/support/users/jgs/)
 * (@jgs)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600225)
 * Where is the .htaccess file you’re modifying located?
 *  Thread Starter [Oded Ben-Ami](https://wordpress.org/support/users/oded-ben-ami/)
 * (@oded-ben-ami)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600234)
 * public_html
 *  [Greg](https://wordpress.org/support/users/jgs/)
 * (@jgs)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600241)
 * Your /wordpress/index.php file appears to be missing.
 *  Thread Starter [Oded Ben-Ami](https://wordpress.org/support/users/oded-ben-ami/)
 * (@oded-ben-ami)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600243)
 * Can you help me fix that?
 *  [Greg](https://wordpress.org/support/users/jgs/)
 * (@jgs)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600244)
 * Do you still have the zip file you installed from? If so, you could put a fresh
   copy of the index.php file in your WordPress directory.
 *  Thread Starter [Oded Ben-Ami](https://wordpress.org/support/users/oded-ben-ami/)
 * (@oded-ben-ami)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600247)
 * I don’t.
    Only a few days ago I updated from wordpress 3.5 to 3.5.1, but I used
   the automatic option, without downloading the zip.
 *  [Greg](https://wordpress.org/support/users/jgs/)
 * (@jgs)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600248)
 * If you’re using 3.5.1 you can download the archive here: [http://wordpress.org/latest.zip](http://wordpress.org/latest.zip)
 * Extract the files on your machine, then FTP the index.php file into your /wordpress/
   directory.
 *  Thread Starter [Oded Ben-Ami](https://wordpress.org/support/users/oded-ben-ami/)
 * (@oded-ben-ami)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/#post-3600249)
 * I just did.
    Here’s what’s happening; if I enter: [http://odedbenami.com](http://odedbenami.com)
   it changes it to https
 * but if I enter any of the pages, say
    [http://odedbenami.com/consultation](http://odedbenami.com/consultation)
   or without the http: odedbenami.com/consultation
 * https is not enforced.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/page/2/?output_format=md)

The topic ‘SSL – Getting http instead of https’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 18 replies
 * 3 participants
 * Last reply from: [Greg](https://wordpress.org/support/users/jgs/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/ssl-getting-http-instead-of-https/page/2/#post-3600256)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
