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