2015-05-09, 10:47:01
(This post was last modified: 2015-05-09, 10:48:31 by registration.)
Hello forum members,
when I use get_theme_url()/someResource or something like that to include some resource into a page, the URL for the client always begins with http instead of https when the whole page is in https, resulting in mixed content errors in browsers.
I don't want to enforce https at all times, it should just work when a visitor to the site requests to use https.
phpinfo() shows that https mode is detected by php.
How can I fix this?
when I use get_theme_url()/someResource or something like that to include some resource into a page, the URL for the client always begins with http instead of https when the whole page is in https, resulting in mixed content errors in browsers.
I don't want to enforce https at all times, it should just work when a visitor to the site requests to use https.
phpinfo() shows that https mode is detected by php.
How can I fix this?