beginner needs help planning website

P

Peter

Sorry if this is a bit off-topic for this group, but it is the most relevant
one I could find. In the past I have built various very simple websites,
using Netscape composer, but I am now re-building my own site and want to do
something that I have seen on many other sites, but can't find out how. I
want to have something similar to:
www.bbc.co.uk/oxford. this takes the reader straight to the radio oxford
section on the site. How can I create a similar link? I had always assumed
that tha part after the / was a folder with that name but I found that
doesn't work, by trial and error.
any help would be greatly appreciated.
Pete
 
I

Inger Helene Falch-Jacobsen

...
In the past I have built various very simple websites,
using Netscape composer,

I can recommend http://www.editplus.com/
but I am now re-building my own site and want to do
something that I have seen on many other sites, but can't find out how. I
want to have something similar to:
www.bbc.co.uk/oxford.

Take a look at the source code of the page. I'm sure you can do better than
that!
this takes the reader straight to the radio oxford
section on the site. How can I create a similar link? I had always assumed
that tha part after the / was a folder with that name but I found that
doesn't work, by trial and error.

The "real" URL to that page is http://www.bbc.co.uk/oxford/index.shtml
As this page is the "default page" of the folder "oxford", your browser goes
directly to this page.
The default page can be index.htm, index.html, default.php and some other
like that.

Hope this helps (and that it was what you were looking for)!
 
A

Augustus

Peter said:
Sorry if this is a bit off-topic for this group, but it is the most relevant
one I could find. In the past I have built various very simple websites,
using Netscape composer, but I am now re-building my own site and want to do
something that I have seen on many other sites, but can't find out how. I
want to have something similar to:
www.bbc.co.uk/oxford. this takes the reader straight to the radio oxford
section on the site. How can I create a similar link? I had always assumed
that tha part after the / was a folder with that name but I found that
doesn't work, by trial and error.
any help would be greatly appreciated.

Your website has a "default page" set for it... with HTML sites its usually
"INDEX.HTML"

typing in:
www.bbc.co.uk/oxford
is the same as typing in:
www.bbc.co.uk/oxford/index.html

the "oxford" is a subdirectory of the website... when no page is specified
(as is the case with www.bbc.co.uk/oxford) the webserver will automatically
look for the "default" page (which again is usually index.html, but not
always)

If the index.html page (or whatever the default is for your webserver) does
not exist and no page was specified (which is most likely the problem you
are having) then it will return a "404 page not found" error
 
P

Peter

Augustus said:
to

Your website has a "default page" set for it... with HTML sites its usually
"INDEX.HTML"

typing in:
www.bbc.co.uk/oxford
is the same as typing in:
www.bbc.co.uk/oxford/index.html

the "oxford" is a subdirectory of the website... when no page is specified
(as is the case with www.bbc.co.uk/oxford) the webserver will automatically
look for the "default" page (which again is usually index.html, but not
always)

If the index.html page (or whatever the default is for your webserver) does
not exist and no page was specified (which is most likely the problem you
are having) then it will return a "404 page not found" error


that is what I thought. So I created a directory in my root directory and
put a file in it called index.html.
specifically what I am trying to do is:
www.thecopshop.co.uk/classix
please feel free to take a look.
Pete
 
P

Peter

My apologies to all - and thanks to those who replied - but it appears that
I named the new directory incorrectly and it now seems to work OK. Should
have more faith in myself!!!!
 
P

Paul Furman

Toby said:
usually it will display a directory listing. e.g.
http://www.goddamn.co.uk/tobyink/scratch/

I think that's handy but sometimes people want to block that ability
either globally across the server or on a folder by folder basis using
..htaccess file(s). I've also seen a blank index.html used to cover up
the directory listing. People could still guess at file names or folders
though.
 
T

Toby A Inkster

Marc said:
Toby A Inkster a écrit:
Augustus said:
If the index.html page (or whatever the default is for your webserver)
does not exist [...] then it will return a "404 page not found" error

No -- usually it will display a directory listing. e.g.
http://www.goddamn.co.uk/tobyink/scratch/
It depends on how the server is configured.

On mine i prefer not to allow directory listings; for security (and
other) reasons.

My point stands: in this case there will be no 404 error, but a 403 error.
 
M

Marc Nadeau

Toby A Inkster a écrit:
Marc said:
Toby A Inkster a écrit:
Augustus wrote:

If the index.html page (or whatever the default is for your webserver)
does not exist [...] then it will return a "404 page not found" error

No -- usually it will display a directory listing. e.g.
http://www.goddamn.co.uk/tobyink/scratch/
It depends on how the server is configured.

On mine i prefer not to allow directory listings; for security (and
other) reasons.

My point stands: in this case there will be no 404 error, but a 403 error.

Agreed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top