Loaded Commerce Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.2

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Appending HTTPS to image URLs
PostPosted: Mon Jul 25, 2011 10:52 am 
Offline
CRE Newbie

Joined: Fri Jul 15, 2011 11:27 am
Posts: 6
Hello,

I was told by the provider of my EV SSL certificate that the "green EV bar" wouldn't show up next to the URL like I want it to unless I can ensure that all the image urls being loaded in with the page have an HTTPS appended to them as well. Any idea on how I can configure my CRE Loaded site to do this?

Thanks in advance!
Justin


Top
 Profile  
 
 Post subject: Re: Appending HTTPS to image URLs
PostPosted: Mon Jul 25, 2011 5:13 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2402
Location: New Zealand
If you use relative paths for any images then the cart will automatically make them https:// ... ie don't hardcode in http://www.mysite.com/images/pic1.jpg as this will break on an https:// page. Use images/pic1.jpg only.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Appending HTTPS to image URLs
PostPosted: Tue Jul 26, 2011 8:07 am 
Offline
CRE Newbie

Joined: Fri Jul 15, 2011 11:27 am
Posts: 6
Forgive me for my ignorance, but where do I edit the configuration for this? The configure.php inside admin/includes has the DIR_WS_IMAGES is set to images/ .... Do I have to edit this in the actual back end of the CMS or on the server itself?

Thanks in advance!
Justin


Top
 Profile  
 
 Post subject: Re: Appending HTTPS to image URLs
PostPosted: Tue Jul 26, 2011 8:24 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2402
Location: New Zealand
Hi Justin

Basically wherever hardcoded image links like http:// have been made ... could be /templates/yourtemplate/footer.php, the infoboxes ... if you provide a url where you know there are https:// issues, we can id some.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Appending HTTPS to image URLs
PostPosted: Tue Jul 26, 2011 8:48 am 
Offline
CRE Newbie

Joined: Fri Jul 15, 2011 11:27 am
Posts: 6
Well, for example, if you visit http://www.theosustore.com you'll notice that the "https" is in there for the web site, but not for the images...

I'm using this code in the .htaccess file in the site root:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Thanks again!
Justin


Top
 Profile  
 
 Post subject: Re: Appending HTTPS to image URLs
PostPosted: Tue Jul 26, 2011 9:03 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2402
Location: New Zealand
Not a lot of point running the whole site through https .. anyway: it's all the images from the external site img.constantcontact that are breaking the ssl.

So your choices:
#1 go through and https:// hardcode all of the images from external sites like this
OR
#2 dload same images onto your own server and use relative paths from there.

Judging by the size of the images, and if you're allowed to use them, I'd go #2.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Mon May 21, 2012 6:41 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy