Question about Web Design

Rkonster

Golden Member
Feb 16, 2000
1,737
0
0
When you go to a web site, it directs you to index.html or index.htm right? Is that always the case? I am not to familiar with how web sites work and would appreciate any help. Thanks.

EDIT:
Thanks for the replies guys. I am trying to get this information using HTTP::Request in Perl, and I cannot seem to do it. Is this possible? Anyone have any ideas?
 

TommyVercetti

Diamond Member
Jan 4, 2003
7,623
1
0
Yeah that is how web servers are setup by default. Ofcourse you can change that default to anything you like.
 

Ness

Diamond Member
Jul 10, 2002
5,407
2
0
I've been told that index, default and home all work, but as a rule of thumb, you should use index.html because it's the one that everyone supports.
 

jfall

Diamond Member
Oct 31, 2000
5,975
2
0
Everyone else pretty much covered it, all depends on the server config.

If you want (on a unix host) you use htaccess to set your defaultindex
 

DannyBoy

Diamond Member
Nov 27, 2002
8,820
2
81
www.danj.me
and index.php index.php3 and any other file extension + default.htm/html/asp etc etc.

What was said about it dependant on how the server was setup is true though, i would imagine all webservers allow you to change it to suit you but generally the defaults have already been supplied...

:)
 

RossMAN

Grand Nagus
Feb 24, 2000
79,019
434
136
Originally posted by: jfall
Everyone else pretty much covered it, all depends on the server config.

If you want (on a unix host) you use htaccess to set your defaultindex

Let's say I wanted to edit .htaccess to make jackass.html the default index what's the code for that?
 

RagingBITCH

Lifer
Sep 27, 2003
17,618
2
76
Originally posted by: RossMAN
Originally posted by: jfall
Everyone else pretty much covered it, all depends on the server config.

If you want (on a unix host) you use htaccess to set your defaultindex

Let's say I wanted to edit .htaccess to make jackass.html the default index what's the code for that?

DirectoryIndex jackass.html *I think*
 

jfall

Diamond Member
Oct 31, 2000
5,975
2
0
Originally posted by: RagingBITCH
Originally posted by: RossMAN
Originally posted by: jfall
Everyone else pretty much covered it, all depends on the server config.

If you want (on a unix host) you use htaccess to set your defaultindex

Let's say I wanted to edit .htaccess to make jackass.html the default index what's the code for that?

DirectoryIndex jackass.html *I think*


Yep, DirectoryIndex filename.ext will do it. Put the .htaccess in your document root (make sure it has the dot, it is a hidden file in unix)
 

Rkonster

Golden Member
Feb 16, 2000
1,737
0
0
Thanks for the replies guys. I am trying to get this information using HTTP::Request in Perl, and I cannot seem to do it. Is this possible? Anyone have any ideas?
 

jfall

Diamond Member
Oct 31, 2000
5,975
2
0
Originally posted by: Rkonster
Thanks for the replies guys. I am trying to get this information using HTTP::Request in Perl, and I cannot seem to do it. Is this possible? Anyone have any ideas?

I'm not sure which informaton you are talking about? Are you looking for specific info on http::request?
 

Rkonster

Golden Member
Feb 16, 2000
1,737
0
0
Originally posted by: jfall
Originally posted by: Rkonster
Thanks for the replies guys. I am trying to get this information using HTTP::Request in Perl, and I cannot seem to do it. Is this possible? Anyone have any ideas?

I'm not sure which informaton you are talking about? Are you looking for specific info on http::request?

For example, if I give it a web site, I would like to know what file it directs to.