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
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,932
Location
GMT +7.00
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.
 

tapan.thapa

New member
Joined
Sep 18, 2012
Messages
3
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
 

daveyw

Verified User
Joined
Jan 5, 2008
Messages
702
Location
/dev/null
I guess you need 'index.html' or 'index.php' and not 'Index.html' or 'Index.php'. Its case sensetive ;-)
 

tapan.thapa

New member
Joined
Sep 18, 2012
Messages
3
Hello,

I am sorry but this is not the case.

Can you suggest something else?

Regards
Tapan Thapa
 

scsi

Verified User
Joined
Aug 19, 2008
Messages
4,695
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:
Top