Title: Problem with https
Last modified: August 21, 2016

---

# Problem with https

 *  [GeraldS](https://wordpress.org/support/users/geralds/)
 * (@geralds)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-with-https-2/)
 * There is a problem when the site is accessed vi https while a http url is configured
   as siteurl. Due to an [issue in WordPress that has been unresolved for 4 years](https://core.trac.wordpress.org/ticket/13941)
   the constant WP_CONTENT_URL always contains the configured protocol, even when
   it is accessed with the other one.
 * I worked around it by using get_bloginfo(‘siteurl’) instead of the constant:
 * `wp_enqueue_script('jquery.fancybox', get_bloginfo('siteurl').'/wp-contenti/plugins/
   fancy-box/jquery.fancybox.js', array('jquery'), '1.2.6');`
 * etc.
 * [https://wordpress.org/plugins/fancybox-for-wordpress/](https://wordpress.org/plugins/fancybox-for-wordpress/)

The topic ‘Problem with https’ is closed to new replies.

 * ![](https://ps.w.org/fancybox-for-wordpress/assets/icon-256x256.jpg?rev=1864321)
 * [FancyBox for WordPress](https://wordpress.org/plugins/fancybox-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fancybox-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fancybox-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/fancybox-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fancybox-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fancybox-for-wordpress/reviews/)

## Tags

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

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