Title: Switching to https:// causes loging redirect loop, mixed content
Last modified: August 31, 2016

---

# Switching to https:// causes loging redirect loop, mixed content

 *  Resolved [lucas13](https://wordpress.org/support/users/lucas13/)
 * (@lucas13)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/switching-to-https-causes-loging-redirect-loop-mixed-content/)
 * Hello,
    I have a webserver with two seperate wordpress installations, both with
   valid working SSL. On one, it works great: the site is set as https:// but http://
   works fine too. On the other, it doesn’t work properly. When the sure url is 
   set to http:, http: is fine, but going to https:// address attempts to load the
   css and other stuff from the http: domain. Changing the site url and home to 
   https: doesn’t help as it still tries to load css from http: (but links point
   to https??), and I also can’t log in as it causes a redirect loop. I’ve left 
   it like this for now and you can [view it here](https://florizelquartet.com).
 * This is a totally clean installation of WordPress (no plugins, default theme),
   so I’m not sure what the problem is. Any suggestions? I posted the .htaccess 
   below, but it’s pretty normal. Thanks!
 * .htaccess:
 *     ```
       # 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]
       </IfModule>
       ```
   

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

 *  Thread Starter [lucas13](https://wordpress.org/support/users/lucas13/)
 * (@lucas13)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/switching-to-https-causes-loging-redirect-loop-mixed-content/#post-7270861)
 * Figured this out.
    I was using nginx as a reverse proxy for Apache. Turns out
   that when it was getting an https hit and passing it to apache, it wasn’t setting
   a certain header “X-Forwarded-Proto” so wordpress’s is_ssl() function wasn’t 
   recognizing the ssl.
 * I added `proxy_set_header X-Forwarded-Proto $scheme;` to my nginx config, which
   solved all the problems.
 *  [Alex](https://wordpress.org/support/users/graphicfusion/)
 * (@graphicfusion)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/switching-to-https-causes-loging-redirect-loop-mixed-content/#post-7271022)
 * Thank you for posting this fix, i had the same issue just recently.

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

The topic ‘Switching to https:// causes loging redirect loop, mixed content’ is 
closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/graphicfusion/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/switching-to-https-causes-loging-redirect-loop-mixed-content/#post-7271022)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
