how do i replace index.html with my site

EmNBoA

New Member
Messages
16
Reaction score
0
Points
0
hi
i uploaded a site with Web Easy professional and anytime i click on the link it still says
" Welcome to your new x10Hosting.com hosting account. You may replace this index.html with your new website."
Can sum1 help me?
my site isnt showing
 

rozandas

New Member
Messages
38
Reaction score
0
Points
0
make sure that index.html is deleted and you put your index.html (yes it has to be named that, [the first page].
 

laeresh

New Member
Messages
38
Reaction score
0
Points
0
index.<extention> is always the first opened file from the folder

i put in < extention > because index can have many formats

index.php
index.html
index.dhtml
index.jsp
index.htm
etc,

hope this helps you ;)

else you can always do "includes" in your index.
 

EmNBoA

New Member
Messages
16
Reaction score
0
Points
0
thanks man but i think there is another trouble
I deleted all the files and now the site doesnt show anymore it says 404error.
here is the site
http://junboa.x10hosting.com
Please help me with that
 
Last edited:

Seanmhair

New Member
Messages
5
Reaction score
0
Points
0
Hi EmnBoA,

In order for a site to display, it has to have at least one page. That page can have several extensions (as laeresh explained) but it must say "index."

By deleting all the pages, what you've done is empty the site, which is why you're getting the 404 error.

Does that make sense?
 

EmNBoA

New Member
Messages
16
Reaction score
0
Points
0
Yea
but how do i fix it?
get a file that says index there?
If yes how can i do that?
I'm now trying to learn those stuffs
 
Last edited:

lohmeyer

New Member
Messages
11
Reaction score
0
Points
0
cpanel -> filemanager -> web root -> new file

type in "index.html"

then edit it put your html code

hope this helps -.^
 

GamingX

Executive Team
Messages
6,355
Reaction score
3
Points
38
The extensions are somewhat confusing but index.html is given preference over index.php. So if you have to display a .php page or someother you can either delete the index.html or can change something in the htacess. But the latter one I am not sure, so don't try it without someone's help.
 

EmNBoA

New Member
Messages
16
Reaction score
0
Points
0
Thanks to u all for helping
finally got it to work
I appreciate ur concern
 

Sohail

Active Member
Messages
3,055
Reaction score
0
Points
36
You have to rename your main page to 'index.html' and then it will work as your main page.
 

ryoko126

New Member
Messages
207
Reaction score
0
Points
0
The extensions are somewhat confusing but index.html is given preference over index.php. So if you have to display a .php page or someother you can either delete the index.html or can change something in the htacess. But the latter one I am not sure, so don't try it without someone's help.


I have no problem with .php pages. If you plan to use php in your site, I think the page HAS to be perl compatible, hence the .php. I used to do everything in just html, but you don't know what it's like to try to update 30+ pages manually in html.
 
Top