So I’ve got Yii setup on a linux box as my dev environment. Everything looks good and works great. Then I deploy it to a production machine using IIS. Since I don’t have access to IIS Manager, I’m pretty limited in what I can do configuration-wise.
On the production machine, everything works, including logging in and interacting with the database, but the css doesn’t load, and after opening firebug, this is apparently caused by a 404 not found.
Other css files, even in the same folder, load just fine. Is it somehow an issue with IIS server blocking download of .less files? If so is there a way around it?
My site is at http://mysite/index.php/mycontroller/myaction
and the firebug console says the css it’s looking for is at http://mysite/css/main.less
Code in layout file:
<link rel="stylesheet/less" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.less" />
$baseUrl = Yii::app()->baseUrl;
$cs = Yii::app()->getClientScript();
$cs->registerScriptFile($baseUrl.'/js/less-1.3.0.min.js');
try this
and make right mime type or rename
main.lesstomain.css