View Single Post
  #7  
Old 02-05-2016, 04:35 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: CSS URL wrong when moving from localhost to live URL

Quote:
Originally Posted by freshradiance
I installed 5.2.9 and then modified some of the template files.

The modified website looks great on my PC with WAMP.

I zipped the entire website and moved it to DREAMHOST and unzipped it.

I dumped my MYSQL DB and loaded it into a clean DB on my live server.

The website does not look right and I found that 2 CSS files are not loading properly.

Here are the links (2nd and 3rd below) on LOCALHOST:
<link href="skins/common/css/font-awesome/font-awesome.min.css?1446106298" rel="stylesheet" type="text/css" media="all" />
<link href="http://localhost/freshradiance/xcart/var/resources/default/http/screen/63b4af06c61cd01fd96fc37c112ca038.css?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="http://localhost/freshradiance/xcart/var/resources/default/http/screen/8d09ebbe4be4d82fe86a2461c944904f.css?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600 italic%2C700italic%2C400%2C300%2C600%2C700&amp;sub set=latin%2Ccyrillic%2Clatin-ext&amp;1446106298" rel="stylesheet" type="text/css" media="not print" />

And here are the links (2nd and 3rd below, 1st and 2nd are same as on the localhost installation) on my live site:
<link href="skins/common/css/font-awesome/font-awesome.min.css?1446106298" rel="stylesheet" type="text/css" media="all" />
<link href="?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="?1446106298" rel="stylesheet" type="text/css" media="screen" />
<link href="//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600 italic%2C700italic%2C400%2C300%2C600%2C700&amp;sub set=latin%2Ccyrillic%2Clatin-ext&amp;1446106298" rel="stylesheet" type="text/css" media="not print" />


Any ideas would be appreciated.
Mark
These files are aggregated CSS.
Try to double check the X-Cart config to make sure http_host, https_host and web_dir parameters are correct, and then refresh the CSS/JS aggregation cache and widget cache in the 'Look & Feel' > 'Performance' section.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote