473,473 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

index.html?

chunk1978
224 New Member
hey,

i have a SUPER dumb question that i just don't know the answer to... ok... so when you goto a website, like www.oprah.com... the address will change to www.oprah.com/index.html

but other websites like www.apple.com will remain www.apple.com...

how do i situate/name the files in my site's folders so there is no need for "index.html"... i'd like to have visitors goto my internet site and the browser would only display www.mysite.com, not www.mysite.com/index.html...

anyone?
Apr 14 '07 #1
3 1352
drhowarddrfine
7,435 Recognized Expert Expert
It has nothing to do with how you arrange your files. This is something handled by the server. If the server sends a header out, not the html page, as text/html then the browser will display it as html. The extension doesn't matter. iow, the browser will interpret johnny.ppp as html as long as the server sends the correct header first.

The Oprah site apparently redirects to the index.html page and serves it that way. They don't have to do that but they do.

You can, too, but this is a server question. Ask on the Apache board.
Apr 14 '07 #2
chunk1978
224 New Member
It has nothing to do with how you arrange your files. This is something handled by the server. If the server sends a header out, not the html page, as text/html then the browser will display it as html. The extension doesn't matter. iow, the browser will interpret johnny.ppp as html as long as the server sends the correct header first.

The Oprah site apparently redirects to the index.html page and serves it that way. They don't have to do that but they do.

You can, too, but this is a server question. Ask on the Apache board.
ok thanks for the info
Apr 14 '07 #3
KevinADC
4,059 Recognized Expert Specialist
the good news is that 99% of the time you don't have to do anything. Any document in any folder that is named index.html will by default be sent from the web server if no particular document is requested. So "www.mysite.com" will actually display the contents of "www.mysite.com/index.html" without you having to do anything. If there is no index.html document the server checks a list of default documents to see if any are there and will display one of those.
Apr 16 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Lab309 | last post by:
The problem I'm trying to solve is as follows: The website has two subdirectories: /ordinary and /phpstuff. Users typing hostname/ordinary get the file index.htm by default, and this works fine. ...
8
by: Vic Spainhower | last post by:
Hello, I'm just getting starting in php and MySQL and I've got my application working correctly on my local windows XP computer. Now, when I publish to my ISP it's not going so well, which is also...
3
by: Jofio | last post by:
Hello, I am a newbie in PHP and I am enthusiastically trying out things. I've just replaced my index.html ( file with index.php
4
by: kurtk | last post by:
I have install Apache and php5. I can execute php with no problem. However, I would like index.php to be recognized and executed the way that index.html is. That is, I want to be able to type...
22
by: Anoop Ghanwani | last post by:
In my public_html directory, I have a bunch of files: index.html x.html, y.html, etc. When a user accesses the domain without a file name, he/she automatically accesses the index.html file....
0
by: Martin | last post by:
I understand that as of IE5.5 iframes respect the z-index style property. However I have noticed some odd behaviour when the iframe's src is set to an MHT web archive instead of an HTML file. ...
8
by: Rob | last post by:
I'm sure this must be something incredibly simple but I just can't see what the problem is. I have some webspace which is accessed along the following lines http://site.address.com/subdir/ ...
2
by: John | last post by:
Hello everyone, I'm currently writing a program to keep track of schedule changes at a school. The goal is to have someone using the program to declare changes, then the program writes a html...
7
by: Jerome | last post by:
How can I get a server to show index.php as it would index.html? When I save index.php it just shows the directory, I'm administrator of an Apache Server and I'm not of a (I think, it's what...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.