Website not applying CSS UNLESS the FULL path to index is specified

Hi I have a site that has been fine for a long time now but recently I have moved it from a windows server to a Linux/Centos one.

Now if I type the web address (as above) into my browser I just see a listing of the sites files. If however, I type the web address AND put the Index.html on the end the site displays fine..

I'd like to know why ?

Thank you all.......
Who is Participating?
Robert SchuttSoftware EngineerCommented:
What webserver are you using? Moving from IIS to Apache can be a lot of work. In this case it could be as simple as adding Index.html (or index.html, if case sensitive) as a default document, but there could be a lot more going on.
Julian HansenCommented:
You need to setup your default document for the webserver - but I think your problem here is case related

Change Index.html to index.html

Linux is case sensititve - Windows is not - you might need to check the rest of your site to make sure all index.html references are lower case.

You don't need to worry about the other pages (unless they don't load)
Ray PaseurCommented:
Who is the hosting company?  On my hosts, there is a cascade that causes the server to render the files in this order:


If your not getting the page by typing in http://localhost/ check the httpd.config file.

In the httpd.conf, is the default address the browser will use to access your files. It is actually something like http://localhost/xampp/index.php in the address bar. You shouldn't have to type all that in though.

Look for this in the httpd.conf file (and add it if it is not there):

<IfModule dir_module>
DirectoryIndex index.html index.php

You may also need to check DocumentRoot.  You can find more information with a Google search for httpd.conf.  This link might be helpful:
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

mrmad1966Author Commented:
Appreciate the responses. yes just the case sensitive issue. Split the points but weighted towards Robert purely as he was the first to answer..
Thanks again..
Ray PaseurCommented:
Thanks for the points.  Yep, Linux is case-sensitive for all file names.  This means that your programming around file system functions, including URLS in your embedded links, may need some work.

Case-sensitivity in PHP, without regard to OS: Constants and Variables.  Class and function names are not case-sensitive, nor are the named booleans.

Best of luck and welcome to the light side, ~Ray
mrmad1966Author Commented:
Thank you Ray... Sound advice !! Appreciated.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.