View Full Version : no default file in public_html folder
agentfb5
02-06-2009, 05:08 AM
Does adding a default directory to public_html automatically direct to the bluehost under construction page? :confused:
agentfb5
02-06-2009, 05:59 AM
I added a default.html file to my public_html directory and now I see nothing when I go to mydomain.com
What info goes into the default file so that it will direct to the bluehost under construction page?
Early Out
02-06-2009, 08:18 AM
You can certainly put up your own default.html that says, "Site under construction." If you want the BH default (which most of us deleted long ago, so we can't provide a copy), contact support via Live Chat.
BCollins
02-10-2009, 07:00 PM
I don't believe putting a "default" folder in the directory will lead people to a under construction page. I would put up your own under construction page - be different.
And the name of your home page has to be default.html it can't be index.html. I tried that and nothing came up but an error page.. But if you go to my website
http://bcollinsdigitalphotography.com/unseen/default.html that is the bluehost version of under construction you can go to view - source code and then copy the whole thing and create a new html doc from it and put it in your public_html
Early Out
02-10-2009, 07:04 PM
I don't believe putting a "default" folder in the directory will lead people to a under construction page.
Who said it would? Of course it wouldn't. Only creating a default.html page that says, "Under construction" can accomplish that.
There is no "magic" in computing.
BCollins
02-10-2009, 08:27 PM
After 36 hours of no sleep hence - I'm sorry, I must have misread the original statement and meant to say "default directory" instead of folder and thought that they didn't know WTH the default.html was for. The last time I served up a site the "default" was "index" but its been over 12 years since then......
felgall
02-11-2009, 01:26 AM
The last time I served up a site the "default" was "index" but its been over 12 years since then......
The default is and always has been a list of filenames to search for with the first one found being the one used. Generally the default list starts with index.html index.htm index.php and eventually gets to default.html as the least likely one to pick
You can ovewrride the default list with your own list in the .htaccess file and have your site default to whatever filename you want to use.
BlueHost stick a generic under construction page into public_html as default.html so when you upload your index.html or index.php file for your real site your page has a filename closer to the start of the list and therefore is the one chosen. You can delete the default.html page but leaving it there will not matter since nothing will link to it unless your real home page gets deleted.
wysiwyg
02-11-2009, 11:14 AM
i don't believe putting a "default" folder in the directory will lead people to a under construction page.
who said it would? Of course it wouldn't. Only creating a default.html page that says, "under construction" can accomplish that.
There is no "magic" in computing.
does adding a default directory to public_html automatically direct to the bluehost under construction page? :confused:
1234567890
Early Out
02-11-2009, 02:09 PM
1234567890
Read it again - the original poster corrected himself in the second post to make it clear that he was talking about a default.html file, not a folder.
jukifoo
03-02-2009, 05:30 PM
The default is and always has been a list of filenames to search for with the first one found being the one used. Generally the default list starts with index.html index.htm index.php and eventually gets to default.html as the least likely one to pick
You can ovewrride the default list with your own list in the .htaccess file and have your site default to whatever filename you want to use.
BlueHost stick a generic under construction page into public_html as default.html so when you upload your index.html or index.php file for your real site your page has a filename closer to the start of the list and therefore is the one chosen. You can delete the default.html page but leaving it there will not matter since nothing will link to it unless your real home page gets deleted.
Yeah, all that is clear, but I deleted default.html and it still shows me the Under Construction page, although I have index.php in domain root directory.
felgall
03-02-2009, 05:47 PM
Yeah, all that is clear, but I deleted default.html and it still shows me the Under Construction page, although I have index.php in domain root directory.
Have you made sure you are actually picking up the page from the site and not still looking at a cached copy on your computer?
Early Out
03-02-2009, 05:59 PM
... I have index.php in domain root directory.
It needs to be in public_html, not the root directory. Only files in public_html are directly visible to the outside world.
jukifoo
03-02-2009, 06:25 PM
Yeah felgall, you were right, it's all about the cache.
It needs to be in public_html, not the root directory. Only files in public_html are directly visible to the outside world.
Sure, that's what I meant, and I am talking about addon domains which are already in public_html, so I it's just a expression of mine.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.