index.php is not displayed when using http://www.mysite.com/, but display if using http://mysite.com
Posted on 2008-10-12
I bought a hosting service from a provider who deploys Apache as a web server running on Linux OS. My home directory is /home/angkorci/public_html under which contains also .htaccess file with permission 0644. My problem is to access to my site using http://www.mysite.com, the default page index.php is not displayed but the browser lists all the sub directories of /home/angkorci/public_html while using http://mysite.com (without adding www as prefix) the default page can be displayed normally. The page can be also displayed by using http://www.mysite.com/index.php i.e. I have to specify the page index.php.
I would like to know how I can resolve or fix this issue? What I want is the default page index.php can be displayed using either http://mysite.com or http://www.mysite.com