Jump to content
rfourt

{base_dir} dosnt direct to https

Recommended Posts

Hello i have recently activated SSL and Force SSL.

On some pages in my shop i have some hardcoded images in my theme and i add the images by using this code.

img src="{$base_dir}/img/payment/nordea.png"

wich gives me an error for my certificate in the browsers.

The url to the image should load with https  but it only loads with http.

 

Anyone have an idea?

I have cleared cache etc.

 

PS 1.6

Edited by rfourt (see edit history)

Share this post


Link to post
Share on other sites

Is there some global file where i can set so $base_dir goes to https instead of http?

Or is it handled by the modules and set in there files?

Thank you.,

Share this post


Link to post
Share on other sites

Yes ive started to think of that to.. but over 100 modules and ALOT of theme code to change.. So please save me atleast 4 hours on changing all the $base_dir to base_dir_ssl when it should be .... first of all done from start by activating SSL in admin but i can live with Haxxing the normal base_dir

Share this post


Link to post
Share on other sites

both variables are defined in \controllers\FrontController.php

 

            'base_dir' => _PS_BASE_URL_.__PS_BASE_URI__,
            'base_dir_ssl' => $protocol_link.Tools::getShopDomainSsl().__PS_BASE_URI__,
 

Share this post


Link to post
Share on other sites

both variables are defined in \controllers\FrontController.php

 

            'base_dir' => _PS_BASE_URL_.__PS_BASE_URI__,

            'base_dir_ssl' => $protocol_link.Tools::getShopDomainSsl().__PS_BASE_URI__,

 

ok, that works but is not a real solution. Thanks btw

Share this post


Link to post
Share on other sites
On 4/20/2015 at 5:22 AM, bellini13 said:

why not use {$base_dir_ssl}

This worked for me.. Thanks!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More