Portal Home > Knowledgebase > Articles Database > Subdomain does not default to index.html


Subdomain does not default to index.html




Posted by tormeu, 01-06-2012, 03:35 PM
I have this old site with several subdomains. One of the subdomains does not open the default page \index.php (it use to work). I cannot find the reason, manually typing domain.com\index.php it works. I did add the index directive DirectoryIndex index.php at .htacess but still does not show up. other subdomains are working OK, any clues? Thanks

Posted by T-Junk, 01-06-2012, 05:59 PM
Make sure "AllowOverride" is set to "All" in this sub domains virtual directory in your httpd.conf file (assuming you're running Apache).

Posted by tormeu, 01-06-2012, 06:21 PM
VirtualHost section looks like this Others subdomains looks similar... do I need to modify this?

Posted by T-Junk, 01-06-2012, 06:30 PM
Is this your server, and if so, what OS and control panel are you using? If this is a shared host account, you might want to talk to the hosting company.

Posted by tormeu, 01-06-2012, 06:49 PM
I did open a ticket, answer was pointing to some scripts errors, but did not offer any solution on this ... what's next. I guess find more capable hosting...however this hosting is well ranked here, some how after several years things start to break down and traffic going down[/I] Config: Dedicated server, 2 Gb Ram, 500 Gb Intel Core 2 Cpanel Pro 1.(RC1) 11.30.5 (build 3) Apache 2.2.21, PHP 5.2.17 Mysql 5.1.56 Intel Core 2 Linux version 2.6.18-194.11.4.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Sep 21 05:04:09 EDT 2010 (Monthly range $170). Last edited by tormeu; 01-06-2012 at 06:52 PM.

Posted by T-Junk, 01-06-2012, 07:13 PM
Sorry, I am not familiar with how Cpanel controls stuff. I would imagine that if all of your virtual directories look similar, then it should be functional. You might want to check through httpd.conf and see if .htaccess is named something different. You should also be able to add the DirectoryIndex line into your virtual directory. Last edited by T-Junk; 01-06-2012 at 07:23 PM.

Posted by tormeu, 01-06-2012, 07:41 PM
I did remove the subdomain and include back, no luck. I did setup a redirect for now to custom.domain.com/index.php at least it displays main page.

Posted by Steve_Arm, 01-06-2012, 08:02 PM
Is mod_dir enabled?

Posted by tormeu, 01-07-2012, 12:53 PM
I'm not sure how to check this?

Posted by T-Junk, 01-07-2012, 04:58 PM
I wasn reading in some cPanel documentation which was commenting on events that could trigger a syntax error, you could read more about that here. Perhaps you could try it like this in .htaccess and it would work: I wish I knew more about cPanel (it's actually a new years resolution..). I hope this helps. P.S. You did mention that you checked for an include file from the Include Editor, didn't you?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Amazed.net down (Views: 659)
Cirtex down again (Views: 689)
Our Apologies (Views: 802)

Language: