Sites without .html extensions?

Discussion in 'Web Design and Development' started by e7e, Sep 21, 2009.

  1. e7e macrumors member

    Joined:
    Dec 15, 2007
    #1
    Hello

    I see some webpages don't have an extension like .html, .asp or .php for example: http://somepage.com/MacIsGood Can someone please explain to me

    How you can make your site like this? and Whats the point of this method?

    Thanks in advance.
     
  2. Bostonaholic macrumors 6502

    Bostonaholic

    Joined:
    Aug 21, 2009
    Location:
    Columbus, Ohio
    #2
    Webservers can identify (in a config file usually) the default name of a file to look for in any given directory. For Apache, which serves the majority of the internet, the default page is index.html Which means, http://somepage.com/MacIsGood is actually looking at http://somepage.com/MacIsGood/index.html (for my example).

    As for the advantages to doing it this way? I don't know other than naming conventions and consistency.
     
  3. jakeOSX macrumors regular

    Joined:
    Mar 24, 2005
    #3
    some of the CMS's use a 'clean url' strategy.

    so something like:

    myurl.com/blog/thisthing

    is really

    myurl.com/index.php?feature=blog&entry=thisthing

    this is done with .htacess and the specific PHP files.
     
  4. e7e thread starter macrumors member

    Joined:
    Dec 15, 2007
    #4
    Interesting, do you know any tutorials or guides? I tried to google, but didn't find anything useful searching "sites without extension" does this method have a name?
     
  5. autorelease macrumors regular

    Joined:
    Oct 13, 2008
    Location:
    Achewood, CA
  6. Bostonaholic macrumors 6502

    Bostonaholic

    Joined:
    Aug 21, 2009
    Location:
    Columbus, Ohio
    #6
    When I was hosting my site on my computer I had something like this

    Code:
    www/
      index.html
      css/
        [css themes]
      php/
        [php scripts]
      images/
        [global images]
      blog/
        index.html
      photos/
        index.html
      vitae
        index.html
      contact/
        index.html
    This way, I could simply link to www.domain.com/blog/ and www.domain.com/photos/ to go to my blog and photos respectively without explicitly giving it the name of the html file.
     
  7. bootedbear macrumors 6502

    bootedbear

    Joined:
    Sep 13, 2004
    Location:
    Austin, TX
    #7
    Java-powered web applications (server-side Java, not applets) can map URLs to whatever they want.
     
  8. Consultant macrumors G5

    Consultant

    Joined:
    Jun 27, 2007
    #8
    Those are mostly used by php servers. When the server is set up that way, if you add performance (caching) functions, you can be served the .html instead of .php without SEO hit nor user thinking something is up.

    People, those URLs usually have an ending "/" such as this

    Bruce Willis is Mac user
    http://obamapacman.com/2009/09/bruce-willis-actor-producer-mac-user/
     
  9. e7e thread starter macrumors member

    Joined:
    Dec 15, 2007
    #9
    Thanks for all the tip and explanations, I am going to try this out. :)
     

Share This Page