A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: linking to a directory?

  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    66

    linking to a directory?

    apologies for posting a real basic http question here, but at least i know i'm going to get an answer..

    how do i send people to a page on my website if they use a url that ends in a directory? for example, go to www.bbc.co.uk/radio1 - that's not actually a page, ie it has no .htm extension. similarly, i want people to be able to go to www.mydomain.com/cv but the actual page is www.mydomain.com/cv/main.htm

    how's it done, please ?

    ||| O ^ | + O ¬

  2. #2
    X-Moderator AlienInLondon's Avatar
    Join Date
    Feb 2002
    Location
    London, UK
    Posts
    1,475
    You need to set up a default index page at your host. This is the page that will be displayed if a user just accesses a directory.

    The normal defaults are index.html, index.htm and/or default.htm.

    So to answer your question, rename your page main.html to index.html and you should be sorted.
    For 100's of free Swishmax and V2 downloads, tutorials
    and stunning site templates [CLICK HERE]

  3. #3
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    Just rename your page to "index.html" and it should show up when you type www.somedomain.com/cv it's up to the server configuration to get the default page for a directory and normally it's "index.html", "index.htm" but you can define whatever you want.
    NuCleuZ :: PHPVolcano :: Blog

  4. #4
    Member
    Join Date
    Jan 2002
    Posts
    66
    thanks, both of you! knew it had to be something straightforward like that..

    cheers

    ||| O ^ | + O ¬

  5. #5
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    one slight addition there:
    if you put http://..../dirname into the url, there is an extra roundtrip to the server - if you put http://..../dirname/ there, the default page is loaded right away
    One of the rare cases where a slash may be worth a few seconds....

    Musicman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center