Quick Question About Website URL - How To Have xxx.com/1 As A Page?

Discussion in 'Site & Server Administration' started by bad_bob00, Mar 9, 2008.

  1. #1
    Hi there,

    Got a quick and hopefully simple question to ask...

    Say I have a website at xxx.com and I want to be able to have my website link as xxx.com/1. How would this be possible? I know I could have xxx.com/1.html but I have seen that some people can link to just a number without having to have a filename extension.

    It is basically just so the website link looks a bit more professional then linking to a .html page directly.


    Thanks for any help
     
    bad_bob00, Mar 9, 2008 IP
  2. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #2
    I think adding .html looks more professional. But this can be done with mod_rewrite. How exactly I cant tell you because I suck at it but this is how its done.
     
    aaron_nimocks, Mar 9, 2008 IP
    bad_bob00 likes this.
  3. mobileads

    mobileads Guest

    Messages:
    2
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Name the page "index.html".
    Make a folder named "1"
    Put "index.html" in the "1" folder
    Then you can access the site as xxx.com/1

    Any page named "index".whatever will be picked up automatically.
     
    mobileads, Mar 11, 2008 IP
    bad_bob00 likes this.