Welcome Guest, Not a member yet? Register   Sign In
Arrgghh! CSS not loading on IIS server. Works fine on Apache.
#1

[eluser]Sooty[/eluser]
I'm new to codeigniter, though not new to PHP. I have built my first CI site on my Windows Dev machine running Apache. It works perfectly. Uploaded it to the big wide web, onto a Windows server running IIS7, and no matter what I do I can't get the stylesheets to load.

I have added the relevent folders to .htaccess:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|css|assets)
RewriteRule ^(.*)$ ./index.php/$1 [L]

It may be relevent that I am using LESS CSS, but I have tried changing it back to a standard CSS file and still no luck. The server is configured for LESS too. There are other sites on there running LESS.

I'm completely stumped and currently going through the process of reverting back to a non-CI system, so any help would be appreciated!

#2

[eluser]Sooty[/eluser]
My frustration has come to an end.

It turns out it wasn't a CI issue at all. Somehow my LESS configuration had become un-configured. I know how implausible that sounds, but the same site, albeit not running CI, was running in the same place, on the same server moments before it went bang, which just happened to coincide with when I uploaded my CI version.







Theme © iAndrew 2016 - Forum software by © MyBB