Index files for Subdomains
Posted
by user358994
on Stack Overflow
See other posts from Stack Overflow
or by user358994
Published on 2010-06-05T12:00:21Z
Indexed on
2010/06/05
12:02 UTC
Read the original article
Hit count: 140
index
I was finally able to setup subdomains but now I have a problem when I try and access the subdomain by itself. For instance, when I visit sub.domain.com, I get a page not found error. However, when I visit sub.domain.com/index.php, I see my page.
My theory is that when I visit sub.domain.com, the index file it searches for is not in the sub/ folder but instead in the root folder. I have directoryindex to look for index.html before index.php. There is a index.html in the root directory that is needed. So when I go to sub.domain.com, it thinks that sub.domain.com/index.html exists but then finds out it doesnt and sends me a 404. That is my theory. How would I fix this? Any ideas? Thanks.
© Stack Overflow or respective owner