X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   MaxCDN Content Delivery Solution? (https://forum.x-cart.com/showthread.php?t=55319)

a1deano 04-22-2012 09:45 AM

Re: MaxCDN Content Delivery Solution?
 
Has anyone got v4.4.4 working on Maxcdn without problems...

LaurenOSD 07-10-2012 04:02 PM

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


All times are GMT -8. The time now is 10:38 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.