View Single Post
  #62  
Old 07-10-2012, 04:02 PM
 
LaurenOSD LaurenOSD is offline
 

Newbie
  
Join Date: Feb 2012
Posts: 6
 

Default Re: MaxCDN Content Delivery Solution?

Quote:
Originally Posted by Jon
I've experimented with different configurations but this principle has proved the most effective:

Open smarty.php

FIND:

Code:
$smarty->assign("SkinDir",$xcart_web_dir."/skin1"); $smarty->assign("ImagesDir",$xcart_web_dir."/skin1/images");

REPLACE WITH:

Code:
// WCM - MaxCDN Implementation if ($_SERVER['HTTPS'] != 'on') { $smarty->assign("SkinDir","http://CdnUrl.example.com/skin1"); $smarty->assign("ImagesDir","http://CdnUrl.example.com/skin1/images"); } else { $smarty->assign("SkinDir",$xcart_web_dir."/skin1"); $smarty->assign("ImagesDir",$xcart_web_dir."/skin1/images"); } // WCM - MaxCDN Implementation

Hello Jon,

I've just purchased CDSeo Pro for my Xcart version - Do you happen to have a similar tweak you could share for Amazon Cloudfront?

I am running an EC2 instance with Cloudfront and Route53

Thanks so much!
Tom
__________________
X-Cart Pro Version 4.4.5

On Sale|Download Expander|Newest Products
Reply With Quote