How is that done?

Discussion in 'HTML & Website Design' started by oo7ml, Jan 18, 2008.

  1. #1
    I have noticed on some sites lately that they don't have file extensions in their url:

    www.domainname.com/login

    whereas other sites have

    www.domainname.com/login.php
    www.domainname.com/login.asp
    www.domainname.com/login.html

    How is this done, i know you can have a folder called login and it will show up like this BUT what about sites such as bebo.com. They have millions of members and their members links are www.bebo.com/MembersName (they hardly create a folder for every member!)

    Thanks in advance
     
    oo7ml, Jan 18, 2008 IP
  2. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am sure someone will come along with a more complete answer, but i believe you should google mod_rewrite.

    Nick
     
    nicangeli, Jan 18, 2008 IP
  3. oo7ml

    oo7ml Well-Known Member

    Messages:
    656
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Thanks for your reply
     
    oo7ml, Jan 18, 2008 IP
  4. adamrowdy

    adamrowdy Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    2 options:

    1) use index.html/php/asp any extension for the subfolder

    2) use MOD rewrite
     
    adamrowdy, Jan 18, 2008 IP
  5. oo7ml

    oo7ml Well-Known Member

    Messages:
    656
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #5
    Ok thanks for your help
     
    oo7ml, Jan 18, 2008 IP
  6. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #6
    As said by adam, it is either by having folders and it is just serving up the default document or using URL rewriting. If you have an Apache server it is easy to do in the .htaccess file where as with IIS it is more complex and rarely can be done on shared hosting unless your using .Net and your webhosts are willing to push all requests through the .net framework in which case you can either write a HTTPHandler or download one of the many prewritten ones where you just then need to write the rules in the config file
     
    AstarothSolutions, Jan 18, 2008 IP
  7. oo7ml

    oo7ml Well-Known Member

    Messages:
    656
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #7
    Thanks for all replies...
     
    oo7ml, Jan 18, 2008 IP