![]() |
CSS URL wrong when moving from localhost to live URL
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&sub set=latin%2Ccyrillic%2Clatin-ext&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&sub set=latin%2Ccyrillic%2Clatin-ext&1446106298" rel="stylesheet" type="text/css" media="not print" /> Any ideas would be appreciated. Mark |
Re: CSS URL wrong when moving from localhost to live URL
Mark,
I have approved your post. It was moderated as it was your first. It would be helpful to be able to view the source code of the site in question. Perhaps a link? |
Re: CSS URL wrong when moving from localhost to live URL
Forgot to include it.
http://freshradiance.com/xcart/ All the code seems the same except for the LOCALHOST vs FRESHRADIANCE URLs. |
Re: CSS URL wrong when moving from localhost to live URL
You have edited config.php I am assuming. You changed localhost to freshradiance in there correct?
And then rebuilt the cache in the admin? |
Re: CSS URL wrong when moving from localhost to live URL
Quote:
Meaning you are a forum moderator now Mike? |
Re: CSS URL wrong when moving from localhost to live URL
Quote:
|
Re: CSS URL wrong when moving from localhost to live URL
Quote:
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. |
All times are GMT -8. The time now is 11:04 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.