Title: site_url won&#039;t recognize https://
Last modified: August 30, 2016

---

# site_url won't recognize https://

 *  Resolved [Sergey Filimonov](https://wordpress.org/support/users/tunecatcher/)
 * (@tunecatcher)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/site_url-wont-recognize-https/)
 * I have added an SSL certificate to my site. It became [https://filimonov.vc](https://filimonov.vc).
   But all the stylesheets broke. I thought immediately that the problem is that
   my site_url is still with http and the site is not loading the style content 
   as it’s not secure. After the change the problem did not disappear though I could
   see [https://filimonov.vc](https://filimonov.vc) in admin settings>general panel(
   without styles also) and in phpMyAdmin. I tried to echo this out onto one of 
   the pages and I saw that it echoes out [http://filimonov.vc](http://filimonov.vc).
   I could change it to [https://filimonov123.vc](https://filimonov123.vc) and it
   will echo out [https://filimonov123.vc](https://filimonov123.vc) BUT NOT [https://filimonov.vc](https://filimonov.vc).
   I tried to change the site_url via phpMyAdmin, via settings in the admin panel,
   via functions.php, via wp-config.php but this is not helping.
 * Please help.

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/site_url-wont-recognize-https/?output_format=md)
[1](https://wordpress.org/support/topic/site_url-wont-recognize-https/?output_format=md)
2

 *  Thread Starter [Sergey Filimonov](https://wordpress.org/support/users/tunecatcher/)
 * (@tunecatcher)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/site_url-wont-recognize-https/page/2/#post-6844401)
 * [@james](https://wordpress.org/support/users/james/) SSL Insecure Content Fixer
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/site_url-wont-recognize-https/page/2/#post-6844404)
 * Excellent, thanks!
 *  [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/site_url-wont-recognize-https/page/2/#post-6844407)
 * [@tunecatcher](https://wordpress.org/support/users/tunecatcher/):
 * > After I added [the code into wp-config.php] I cannot access my admin area anymore.
   > Though the users status is 0.
 * Can you elaborate on that please? Did you have something else installed / active
   that you removed to fix this?
 * cheers,
    Ross
 *  Thread Starter [Sergey Filimonov](https://wordpress.org/support/users/tunecatcher/)
 * (@tunecatcher)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/site_url-wont-recognize-https/page/2/#post-6844408)
 * [@webaware](https://wordpress.org/support/users/webaware/) I have deleted the
   code from wp-config.php:
 *     ```
       if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
       	$_SERVER['HTTPS'] = 'on';
       }
       ```
   
 * and set the settings to [http://take.ms/CzIHu](http://take.ms/CzIHu)
 * That solved the issue.
 *  [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/site_url-wont-recognize-https/page/2/#post-6844411)
 * OK, thanks. It’s weird, I have tested with that configuration and did not get
   locked out of the admin, but several others have been locked out of admin using
   my plugin with HTTPS detection set to `HTTP_X_FORWARDED_PROTO`. I just wish I
   could reproduce that!
 * Anyway, glad that you have it working.
 * You should be able to turn that setting off in the plugin (i.e. set it back to“
   normal WordPress”) and even deactivate the plugin, then add that code to your
   wp-config.php file. However, when I looked at the website you had other issues
   such as images with `http` URLs, which would cause insecure content warnings.
   The plugin is the easiest way to resolve those (although the best way is obviously
   to [fix them at source](https://ssl.webaware.net.au/cleaning-up-content/)!)
 * cheers,
    Ross
 *  Thread Starter [Sergey Filimonov](https://wordpress.org/support/users/tunecatcher/)
 * (@tunecatcher)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/site_url-wont-recognize-https/page/2/#post-6844412)
 * [@webaware](https://wordpress.org/support/users/webaware/) thank you very much
   for your help! I’ve bought you some drink 😀
 *  [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/site_url-wont-recognize-https/page/2/#post-6844413)
 * Thanks, mate! Always welcome 🙂

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/site_url-wont-recognize-https/?output_format=md)
[1](https://wordpress.org/support/topic/site_url-wont-recognize-https/?output_format=md)
2

The topic ‘site_url won't recognize https://’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 22 replies
 * 4 participants
 * Last reply from: [webaware](https://wordpress.org/support/users/webaware/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/site_url-wont-recognize-https/page/2/#post-6844413)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
