Click to See Complete Forum and Search --> : Defualt.htm Setting the Homepage help


jasona90
07-21-2005, 09:54 AM
How do i set the defualt page the browser is directed to when a surfer types in the domain and nothing else, such as www.google.com, google probably has a page called default.htm, but it does not display in the browser bar. Thanks in advance.

CompGeek01
07-21-2005, 10:04 AM
The page might have been default.htm in the past (probably a Microsoft thing), but today the page standard is index.html. Are you hosting your own website or are you using a host provider?

jasona90
07-21-2005, 10:13 AM
i am not the original designer, i am trying to learn webdesign at my new job. It is hosted by cheaphosting.com. I am using dreamweaver. I have a local storage of the website that i edit and then upload to the server by FTP. But something went wrong last night and the page that previously was directed to index.htm is now I "think" is directed to default.htm

ray326
07-21-2005, 11:16 PM
The page might have been default.htm in the past (probably a Microsoft thing), but today the page standard is index.html.Yes, default.* is a Microsoft thing but it is predated by a long shot by index.*.

ray326
07-21-2005, 11:19 PM
Put a self-describing page with each name in the root of the site then point your browser to the root dir and see which one shows up. Most hosting services run Apache and use index.htm as the default index page unless they have something like PHP enabled, in which case index.php may be found first.

dbeh
10-25-2005, 06:05 AM
Put a self-describing page with each name in the root of the site then point your browser to the root dir and see which one shows up. Most hosting services run Apache and use index.htm as the default index page unless they have something like PHP enabled, in which case index.php may be found first.

Yes you're right. I'm facing the same problem. PHP should be enabled on my hosting server. I've put the old index.php webpage back on and it's detecting that as the default page.

So how do I disable PHP or direct it to index.html?

I've tried editing .htaccess putting in DirectoryIndex index.html

But this doesn't work. Any suggestions?

ray326
10-25-2005, 11:43 PM
Rename index.php?

programmer98
10-29-2005, 02:02 AM
You could try putting "DirectoryIndex index.html index.php" in the htaccess file to specify which order they should search for these pages if both of these pages exist - you may also have to make changes in the php.ini file

btree
10-30-2005, 01:52 PM
'index' have higher priority more than 'main' or 'default' in Apche default settings , you can change Apache default settings to anything you want , this link may help you :

http://www.smartvi.com/webdesign.htm

Regards