Forum Moderators: phranque

Message Too Old, No Replies

DirectoryIndex problems?

cannot access mydomain.com but mydomain.com/index.php works

         

patric27

7:18 am on Mar 25, 2008 (gmt 0)

10+ Year Member



firstly, sorry if this question is too noob (i dunno what phrase to search for)

i have several domains hosted on the same account with similar index.php and .htaccess files
mydomainA.com is my main account while mydomainB.com is an addon domain. the file structure is something like this

mydomainA.com's public_html/index.php
mydomainA.com's public_html/mydomainB.com/index.php

i have the following single line .htaccess file in both
mydomainA.com's public_html/
mydomainA.com's public_html/mydomainB.com/

DirectoryIndex index.php

however,
http://mydomainA.com/ works perfectly
http://mydomainB.com/ fails to load
http://mydomainA.com/mydomainB.com/ works perfectly

any ideas how i can get http://mydomainB.com/ to load properly?
thanks for helping

[edited by: jdMorgan at 4:56 pm (utc) on Mar. 25, 2008]
[edit reason] De-linked [/edit]

jdMorgan

5:02 pm on Mar 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You may need to specify the full local path of the index page:

DirectoryIndex /domainB.com/index.php

You might also want to try putting a simple static HTML index page into domainB and declaring it as your DirectoryIndex page. If it works, that tells you that the problem is not a server config problem, but rather a PHP config problem.

If that does not help, please tell us specifically what you mean by "fails to load" -- What do you see in your browser? What do you see in the server error log?

Jim