Index.html or Index.php not working

tapan.thapa

New member
Joined
Sep 18, 2012
Messages
3
Hello Team,

I have copied my index.html or index.php on public_html folder via direct admin panel however i am still getting apache's default page.

Can anyone suggest how should i get rid from this issue?

Regards
Tapan Thapa
 
Hello,

Do you see apache's default page when you're accessing your web server by a domain name (http://domain.com/) or IP (http://1.2.3.4/)?

By the way what the default page say?

If you want to see index.php in your browser you might need to delete index.html, as index.html might have the biggest priority by default.
 
Hello,

I am trying to access my web page via domain name (tubby.co.nz) and i put my content (index.html) in public_html folder via direct admin web interface.

You can access tubby.co.nz to check the apache's default page which is coming by default.

Can you suggest anything if i am doing any mistake on Direct Admin web interface?

Regards
Tapan Thapa
 
I guess you need 'index.html' or 'index.php' and not 'Index.html' or 'Index.php'. Its case sensetive ;-)
 
Hello,

I am sorry but this is not the case.

Can you suggest something else?

Regards
Tapan Thapa
 
You could always put the following in .htaccess to override the directory index defaults so index.php is seen first. If not just delete the index.html in the public_html folder.

Code:
DirectoryIndex index.php index.html

If you are seeing apache is functioning normally page then you have a dns problem and your dns and vhost ips do not match.
 
Last edited:
Back
Top