Index.php instead of Index.html

Status
Not open for further replies.

GamingX

Executive Team
Messages
6,355
Reaction score
3
Points
38
Hello everyone,
I had created a website with Dreamweaver before but after sometime I came to know about Joomla, so I installed Joomla, but in Joomla the index file is index.php, whereas I had previously uploaded index.html
, even though Joomla is installed in the public_www, when I open my website it opens up the index.html file, does X10hosting have an option so that index.php opens up?
 

*Face

New Member
Messages
62
Reaction score
0
Points
0
If you rename/delete your index.html it should work, but if you want to keep it, edit your .htaccess file in that directory (you have to enable "View Hidden Files" in your file manager) to add this:

Code:
Directory Index index.php index.html  index.htm
 

GamingX

Executive Team
Messages
6,355
Reaction score
3
Points
38
I did that, and I could not access my site and kept getting some errors...So I rolled back the changes...
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
DirectoryIndex index.php

Make DirectoryIndex one word

Put that in your .htaccess file like *Face said.

-Corey
 

Zenax

Active Member
Messages
1,377
Reaction score
4
Points
38
btw .html files come above .php for some strange reason! so index.html will always show over a index.php file, unless you edit the .htaccess like everyone else said
 
Last edited:

alfren

New Member
Messages
207
Reaction score
0
Points
0
you should try the redirects section in cpanel.... you can redirect yoursite.com or yoursite.com/index.html into yoursite.com/index.php
 
Status
Not open for further replies.
Top