|
|
|
| Web Hosting Guide |
![]() ![]() |
Index.html Problems |
Jun 18 2005, 09:05 AM
Post
#1
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 19 Joined: 8-June 05 From: Australia Member No.: 5,966 |
I uploaded a whole heap of files one named index.html, i expected my homepage to automatically set itself to the index.html page, but i guess not. It would be a great help if someone could tell me how to change my default page to the index.html page.
|
|
|
|
Jun 18 2005, 09:16 AM
Post
#2
|
|
|
Premium Member Group: Members Posts: 230 Joined: 15-May 05 From: your sister Member No.: 5,102 |
Hi,
did you put your "index.html" in the correct directory? It must be in the directory "public_html". If it doesn't work, perhaps there is another file "index.htm" or "index.php" in the same directory. GreetingZ |
|
|
|
Jun 18 2005, 12:10 PM
Post
#3
|
|
|
Premium Member Group: Members Posts: 382 Joined: 5-September 04 Member No.: 255 |
Come to think of it, does the server automatically recognise index.html and use it as the homepage? Do all servers recognise index.html? And how does one go about getting the server to recognise, say, homepage.html as the homepage? thanks in advance
|
|
|
|
Jun 18 2005, 06:45 PM
Post
#4
|
|
|
Absolute Newbie Group: Admin Posts: 888 Joined: 20-February 05 From: Indianapolis, Indiana, USA (Midwest) Member No.: 2,714 myCENTs:35.43 |
Most servers are set up to automatically display index.html as the directory default and our servers are no different.
More and more often I see servers also allowing index.php to be used as the default. If you have an index,html and and index.php, then the server may request clarification via your ftp client. Any time I have both files, the server sends such a request through my ftp client. I then get a pop up window asking which will be used. Additionally, I'm pretty sure that you can override the server settings for this by using the .htaccess file for that directory. The whatever file you want to use would be shown as the default. Make sure that the original file was actually replaced with the new one and that your files are in the correct folder. Hope This Helps. vujsa |
|
|
|
Jun 19 2005, 11:50 AM
Post
#5
|
|
|
Super Member Group: Members Posts: 572 Joined: 25-April 05 From: Nashville Tennessee Member No.: 4,340 |
QUOTE And how does one go about getting the server to recognise, say, homepage.html as the homepage? thanks in advance That is simple just rename your homepage.html to index.html unless the default for a server has been highly tweaked all servers look for an index (either htm or html or php) and that is the HOMEPAGE. If you look at a large website structure there will be many folders or directories that offer different content. each directory will have an index.htm or index html, or perhaps index.php which is the first page the server looks for, there has to be some sort of standard and it has been decided that index is just fine for the purpose of letting servers know what to start out with, unless the server is told otherwise to find homepage.htm or whatever it will automatically show you the index.(extension) when going to the page. See below for a bettr explaination: type http:www.astahost.com/ into your address bar and then watch the browser you will notice that the page will come back with the home page, then just for the fun of it add to the address above index.php so it looks like http://www.astahost.com/forums.html then refresh the page, and then refresh the page. It comes back the same as when you typed in just the domain without the index.php because the server found an index and added it and servered it. You can go to any site and leave off the index.(extension) and it will show you the HOME page because it will look for an index. Hope that helps clear your query up. |
|
|
|
Jun 28 2006, 12:57 PM
Post
#6
|
|
|
Premium Member Group: Members Posts: 216 Joined: 7-March 05 From: Carrollton, TX Member No.: 2,953 |
I'm having the same problem, I think.
The default index.html says "welcome to your hosted site" but I don't want that. So I deleted it and uploaded my own index.html through Web2FTP, but it won't load my index.html... What's going on? |
|
|
|
Jun 28 2006, 01:59 PM
Post
#7
|
|
|
Whitest Black Mage Group: [MODERATOR] Posts: 1,381 Joined: 20-May 05 From: NB, Canada Member No.: 5,281 myCENTs:93.97 |
hm, I can't check myself since my index is index.php, but would having .html or .htm affect it? I assume not but worth trying both in case there is an issue there.
Maybe try deleting the index.html, reload the page to see if it crashes you to the parent directory layout or whatnot that happens when there is no index page, and then upload yours and see what happens. At least then you know that the delete is taking effect. Oh troubleshooting, how I love thee lol. |
|
|
|
Jun 28 2006, 02:50 PM
Post
#8
|
|
|
Premium Member Group: Members Posts: 216 Joined: 7-March 05 From: Carrollton, TX Member No.: 2,953 |
well I can visit my website/index.html, but I want it to load that as default...
yes, I will reupload it i guess. thanks *EDIT* Yeah, that worked. Thanks a lot, Jeigh. This post has been edited by austiniskoge: Jun 28 2006, 02:58 PM |
|
|
|
Jun 28 2006, 10:27 PM
Post
#9
|
|
|
the Q Group: [HOSTED] Posts: 1,307 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 myCENTs:30.66 |
Well, for me index.html worked as I used it the last time quite well, as a matter of fact it is apache's httpd.conf setting called DirectoryIndex, so astahost server allow us to have our own custom settings for the servers using .htaccess server, if you want to put these settings on all your account, just put the file into /home/username/ or in your main root, the directory before public_html in that file write:
CODE DirectoryIndex index.html index.htm index.php index.asp default.php or whatever you want, the first one will be searched, then the second and so on.. if the file is not found it will show something, using the command IndexIgnore, you can avoid directory listing like writing it like this in the same file: CODE IndexIgnore * you also can use a lot of other options/settings using htaccess, search the forum for htaccess, I have wrote a lot about them on this forum, almost step by step, for me they are very clear, other members wrote a lot too. God luck. |
|
|
|
Jun 29 2006, 06:13 AM
Post
#10
|
|
|
Advanced Member Group: Members Posts: 130 Joined: 22-May 06 From: India Member No.: 13,593 |
As far as I know, from my experience with Astahost Web Hosting, I never got that 'Welcome to your Astahost account' page on top of my site. I uploaded my site via frontpage, and here's what I'd like to stress upon-
If you still have problems, then you should try uploading your 'index.html' file using the File Manager in Cpanel at Astahost - that just has to work! PM me for any doubts if you wish... |
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
49 | Poison_the_well | 9,083 | 6th November 2009 - 03:45 PM Last post by: iG-Ramesh |
|||
![]() |
17 | proxies | 2,366 | 4th November 2009 - 11:29 PM Last post by: HannahI |
|||
![]() |
12 | Propeng | 2,699 | 3rd November 2009 - 09:55 PM Last post by: HannahI |
|||
![]() |
11 | ejfetters | 5,314 | 25th October 2009 - 02:44 PM Last post by: iG-Tearfall |
|||
![]() |
20 | Grafitti | 2,797 | 23rd October 2009 - 12:26 PM Last post by: iG-Joe |
|||
![]() |
0 | fermin25 | 23 | 22nd October 2009 - 07:00 PM Last post by: fermin25 |
|||
![]() |
23 | sandeep | 6,729 | 12th October 2009 - 10:35 AM Last post by: iG-benivolent |
|||
![]() |
9 | Jimmy89 | 2,415 | 10th October 2009 - 09:48 PM Last post by: iG- |
|||
![]() |
11 | Nqon | 3,444 | 6th October 2009 - 05:49 PM Last post by: starscream |
|||
![]() |
29 | Mitch666Holland | 4,448 | 2nd October 2009 - 07:03 AM Last post by: iG-albu77 |
|||
![]() |
3 | Eggie | 1,253 | 2nd October 2009 - 12:45 AM Last post by: iG-candy |
|||
![]() |
5 | viswa.teja@live.in | 142 | 19th September 2009 - 05:16 PM Last post by: grim reaper1666 |
|||
![]() |
13 | grim reaper1666 | 156 | 15th September 2009 - 10:07 PM Last post by: grim reaper1666 |
|||
![]() |
9 | evought | 2,102 | 8th September 2009 - 04:11 AM Last post by: iG-Stephanie |
|||
![]() |
7 | XIII | 4,579 | 8th September 2009 - 04:04 AM Last post by: iG-Kate |
|||
|
Lo-Fi Version | Time is now: 8th November 2009 - 04:34 PM |
© 2009 AstaHost: Free Web Hosting & Technical Discussion, Free Web Hosting. a member of xisto.
Powered by Invision Board. Skin: IPB Forum Skins
Expand / Collapse Navigation



Jun 18 2005, 09:05 AM





