Title: HTTPS problem with $_SERVER[&#039;HTTPS&#039;]
Last modified: August 30, 2016

---

# HTTPS problem with $_SERVER['HTTPS']

 *  [matgarland](https://wordpress.org/support/users/matgarland/)
 * (@matgarland)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/https-problem-with-_serverhttps/)
 * File: trackable-share-social-icons/index.php
    Affected Line No’s: 97, 105 & 108
 * Use of $_SERVER[‘HTTPS’] is not working when I am running WordPress 4.3.1 over
   https:// protocol.
 * Reason: $_SERVER[‘HTTPS’] is not reliable, instead you should use something ike:
 * `'http'.(443 == $_SERVER['SERVER_PORT']?'s':'')`
 * In fact, I have edited your source in my local version to reflect the above and
   this rectifies the problem.
 * Refer: [http://stackoverflow.com/questions/1175096/how-to-find-out-if-youre-using-https-without-serverhttps](http://stackoverflow.com/questions/1175096/how-to-find-out-if-youre-using-https-without-serverhttps)
 * I don’t have a link to my site as it affects the admin area of WordPress.
 * Thank you for your work.
 * Cheers,
 * Mat
 * [https://wordpress.org/plugins/trackable-social-share-icons/](https://wordpress.org/plugins/trackable-social-share-icons/)

 The topic ‘HTTPS problem with $_SERVER['HTTPS']’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/trackable-social-share-icons.svg)
 * [Trackable Social Share Icons](https://wordpress.org/plugins/trackable-social-share-icons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/trackable-social-share-icons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/trackable-social-share-icons/)
 * [Active Topics](https://wordpress.org/support/plugin/trackable-social-share-icons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/trackable-social-share-icons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/trackable-social-share-icons/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [matgarland](https://wordpress.org/support/users/matgarland/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/https-problem-with-_serverhttps/)
 * Status: not resolved