I dont know why, but my server isn't serving the index.html file by default. what could be the problem? how to solve it? Its not serving index.html file for addon domains created in sub directories under www root.
Have you checked the apache conf? A Document root directive must be set for index.html to be accessible by default.
Using a htaccess file in the root of the directory would do what you want. Add the following to your htaccess file DirectoryIndex index.html
if you are on shared server, then you dont have the root access, you have to contact your hosting provider and tell him to do they will do it for you free of cost
You should really move that particular DirectoryIndex directive into the virtual host containers for the domains and out of htaccess. It's like keeping your toothbrush above your kitchen sink, it works, but it doesn't really belong there.