Making A Sub Folder Main Folder

Status
Not open for further replies.

itz.mike60

New Member
Messages
9
Reaction score
0
Points
0
Hey, Im fairly new to website creation and hosting and i need some help. At the moment i have

http://dazzlefm.x10.mx/Homepage.html but i want it to be just http://dazzlefm.x10.mx because at the moment when i go onto http://dazzlefm.x10.mx i just get Index Of/.

Any Help?
 

Anna

I am just me
Staff member
Messages
11,752
Reaction score
582
Points
113
To achieve that you need to do one of two things.

The first, and easiest option, is to simply rename the file to index.html (note that it has to be all lowercase letters), as this is what the webserver by default serves up if no document is specified in URL.

The second option would be to edit the .htaccess file and through that tell the webserver that Homepage.html should be treated as the default page for your domain.

This would be what you want to add:
Code:
DirectoryIndex Homepage.html
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
1. In general, the homepage should be named index.html (or index.php , index.cgi, index.htm , etc ). But, in your case, you probably have all your links set to Homepage.html

2. To set the 'default' homepage to something else,
a. Go to public_html (cPanel-->File Manager or FTP)
b. Find or create a file named .htaccess
c. Add/Edit so you have a line

DirectoryIndex Homepage.html index.php index.html index.htm

this will tell the server to look for those files, in order, as the default page in any directory.
 
Status
Not open for further replies.
Top