/index lists files but does not go to webpage only why?

nappy2063

Junior Member
Jan 10, 2015
1
0
0
I have a domain name from namecheap.com and im hosting the website on there dns but I dont seem to understand is ok I got the control panel thing and I uploaded the web page from that and jpeg file and I made webpage in microsoft expression web 4.0 it says when I go to my .com website INDEX / has a list of the files on my web site but all I want is my .com web site to go to my web page and jpeg picture I have on the webpage I dont want it to list the files I have its very annoying im new to this web site development thing any help would be appreciated thanks! fyi I have nibble blog software on the web site if I take that out and only have the .html web page and jpeg will that solve the problem? The files I have in my public_html folder is cgi-bin, nibble, openb, status, pc_world.png, website.htm.... The openb and nibble is blog software should I take those out so it only go's to my .htm webpage?
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Did you actually create a file named index.htm (or .html)? What is the filename of the first page you want people to see when they hit the site?
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
If you just want to create and share some content, you might be better off with a wordpress.com blog -- the price starts at free, and you don't need to know anything about web servers.
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
You need to create a file with the name of the "default document" of your webserver.
For most webservers this is default.htm, default.html, index.html, or index.htm. You either need to rename your main file to one of these or change your web configuration to use website.htm as the default document.
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Just to be clear, /index will look for a file named "index' but it will also look for an "index" folder with a (default-page-list) file in it, that is something like /index/index.htm or /index/index.php -- at least that is the default setting for apache when you give it a folder name as the URL. Or as you said it "route or file."

Printed ads have used that as simpler URLs, for example "go to www.foo.com/bigsale" where bigsale is a folder with an index.htm page in it.
 

BoberFett

Lifer
Oct 9, 1999
37,562
9
81
Just to be clear, /index will look for a file named "index' but it will also look for an "index" folder with a (default-page-list) file in it, that is something like /index/index.htm or /index/index.php -- at least that is the default setting for apache when you give it a folder name as the URL. Or as you said it "route or file."

Printed ads have used that as simpler URLs, for example "go to www.foo.com/bigsale" where bigsale is a folder with an index.htm page in it.

Well technically I doubt there are too many sites these days using basic .htm files these days, and those subfolders are actually just used for URL rewriting, but at any rate....

https://www.namecheap.com/support/knowledgebase/article.aspx/183/22/what-is-an-index-page

OP said he's on NameCheap, there's their help about index pages.

Make sure you're in the right folder, and the default is index.html.