Sort of an amateur question...

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

manozi

Thread Starter
Joined
Feb 29, 2004
Messages
47
Hey guys,

First of all I'm not a web-designer by trade, I just 'dabble' every once in a while,
so this might be a very odd/stupid/simple-to-solve question but bear with me ;)

Let's say we have a fictional site - http://www.manozi.com

The following URL is a directory within that site, correct? - http://www.manozi.com/music/

Within that directory can reside various HTML (or other extension) pages.
Then the URL will look like this for example:

http://www.manozi.com/music/music.html

There can also be HTML, or other, pages within the MAIN (not a SUB-) directory, such as:

http://www.manozi.com/music.html

So.... what I want to do is have an URL such as - http://www.manozi.com/music/ - but I want it to lead to an actual 'Music' HTML page, not a sub-directory of the main site called music.

In other words, when you click on - http://www.manozi.com/music/ - you go to Manozi's Music Page, not a white screen listing the contents of that directory.

I don't want to have the URL for the page be: http:/www.manozi.com/music.html - I know that would lead me to the 'Music' page, but rather I want to have the
http://www.manozi.com/music/ lead to the 'Music' page.

I've seen this done before, so I know it is possible, I'm just not aware of how to actually implement something like this. A good example of what I'm talking about would be at this URL:

http://www.intoeternity.net/pics/2003/

When you click on the above, you go to the actual 'Pics - 2003' page, not a 'directory' as the URL would indicate.


Anyway, sorry for the assinine, over-thorough explanations, but I just wanted to make clear what my problem is and avoid any confusion.

Please let me know if this is making any sense, and if it is, how to go about implementing something like that into a site.


Thanks!


Manozi
 
Joined
Aug 7, 2005
Messages
2,183
If you put a page in a directory named index.html, index.htm, index.php, etc. then it will replace the listing page.

So just name your Music page index.html and place it in the /music directory and you're set! :)
 

manozi

Thread Starter
Joined
Feb 29, 2004
Messages
47
Thank you!

You know, that DID cross my mind a few times actually, but I wasn't sure if it would actually work :)

I'll try it out right now.

Thanks for the help!


Cheers,

Manozi
 
Joined
Apr 14, 2001
Messages
2,382
If browsing is on, then every folder that does not have the pages listed as in Ericksrocks earlier post will display the directory contents. If directory browsing is off, you will get a 404 page. when you type the folder and no index or default page exists.
 
Joined
Aug 7, 2005
Messages
2,183
Sequal7 said:
If browsing is on, then every folder that does not have the pages listed as in Ericksrocks earlier post will display the directory contents. If directory browsing is off, you will get a 404 page. when you type the folder and no index or default page exists.
Thanks for clarifying that. ;)
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Top