0

Magento 1.9 setup for https Only.

When the UNsecure_base_url is set to httpS is it normal behaviour for Magento to ignore the UNsecure_base_url settings for media, skin and js and use the secure_base_url settings for these folders?

For Example:

Base URL => https://mySecureSiteURL/

Base Skin URL => mySecureCDN-URL/skin

Base Media URL => mySecureCDN-URL/media

Base Java URL => mySecureCDN-URL/js

Secure Base URL => https://mySecureSiteURL/

Secure Base Skin URL => {{secure_base_url}}skin

Secure Base Media URL => {{secure_base_url}}media

Secure Base Java URL => {{secure_base_url}}js

Magento only ever uses the Secure Base URL settings for non-sensitive pages (ie catagory, product and CMS) and ignores the Unsecure Base URL settings pointing to CDN. Is this Normal?

PЯINCƎ
11.8k3 gold badges27 silver badges85 bronze badges
asked Jul 25, 2017 at 13:04

1 Answer 1

1

Go to : System > Configuration > Web > Secure and make sure the following are set correctly :

  • Base Link URL - {{secure_base_url}}
  • Base Skin URL - {{secure_base_url}}skin/
  • Base Media URL - {{secure_base_url}}media/
  • Base Javascript URL - {{secure_base_url}}js/

With this, the paths generated will follow "Base URL". If a page is secure everything on it will also be served secure.

answered Jul 25, 2017 at 17:35
2
  • By doing this none of my pages will be served from the CDN. If Magento's unsecure_base_url is set to https it ignores the unsecure url links and uses the secure links instead. Commented Jul 26, 2017 at 13:42
  • Is the behaviour as described in my previous comment Normal ? Commented Jul 26, 2017 at 13:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.