Title: is_ssl() broken -&gt; https forced
Last modified: August 20, 2016

---

# is_ssl() broken -> https forced

 *  [amadeuspzs](https://wordpress.org/support/users/amadeuspzs/)
 * (@amadeuspzs)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/is_ssl-broken-https-forced/)
 * Reading [http://wordpress.org/support/topic/ssl-enabled-by-default-for-loginadmin-how-to-remove](http://wordpress.org/support/topic/ssl-enabled-by-default-for-loginadmin-how-to-remove)
   the exact same problem is still occurring in the latest version of WordPress (
   3.3.1).
 * I am hosted on an suPHP system where I don’t have access to their config (linux/
   apache).
 * in wp-includes/functions.php:
 *     ```
       function is_ssl() {
   
               if ( isset($_SERVER['HTTPS']) ) {
                       if ( 'on' == strtolower($_SERVER['HTTPS']) )
                               return true;
                       if ( '1' == $_SERVER['HTTPS'] )
                                return true;
               #} elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
               #        return true;
               }
               return false;
       }
       ```
   
 * The commenting out of the last check for SERVER_PORT fixes the problem that https
   is forced for all links, style sheets, images etc. which breaks my installation
   as I don’t have an SSL certificate.
 * This issue is 2 years old – please look into correcting this?
 * Amadeus

The topic ‘is_ssl() broken -> https forced’ is closed to new replies.

## Tags

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

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 0 replies
 * 1 participant
 * Last reply from: [amadeuspzs](https://wordpress.org/support/users/amadeuspzs/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/is_ssl-broken-https-forced/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
