1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Sort of an amateur question...

Discussion in 'Web Design & Development' started by manozi, Jan 9, 2006.

Thread Status:
Not open for further replies.
Advertisement
  1. manozi

    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
     
  2. Eriksrocks

    Eriksrocks

    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! :)
     
  3. manozi

    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
     
  4. Sequal7

    Sequal7

    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.
     
  5. Eriksrocks

    Eriksrocks

    Joined:
    Aug 7, 2005
    Messages:
    2,183
    Thanks for clarifying that. ;)
     
  6. Sponsor

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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/432653

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice