Pages without extention ?

Discussion in 'HTML & Website Design' started by sprabhu, Dec 2, 2008.

  1. #1
    I have recently visited some website and there were no extension associated with the pages of that website like .html, .php, or .asp.

    It was like:

    www.websitename.com/anything/5667/ and many more ... what does it means how it is possible ?
     
    sprabhu, Dec 2, 2008 IP
  2. jonathon

    jonathon Well-Known Member

    Messages:
    523
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Because they use a Index.html file in a folder.
     
    jonathon, Dec 2, 2008 IP
  3. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #3
    That (above) or they are using mod re-write to turn a scripted display into friendly url's.
     
    Colbyt, Dec 2, 2008 IP
  4. i.run.shit

    i.run.shit Peon

    Messages:
    61
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The format that you have shown (websitename.com/anything/5667/) has sub-directories, which I have put in bold. If you have a index.html, index.htm in that subdirectory, then you can access it in the same way you would the main domain name. You don't have to put websitename.com/index.html into your browser, just like you don't have to put websitename.com/anything/5667/index.html into your browser. If there is no index file in the particular directory, it will display a list of files that have been uploaded into the directory in which you are trying to access.

    Also, with a script like Wordpress, there are no index.html files because it a php based script. I am not fluent in PHP but I do know that if I try to visit a sub-directory of mine (for instance, my last blog post http://flickorian.net/archives/reviewme ) using the /index.html file extension, it brings me to a 404 error page.
     
    i.run.shit, Dec 2, 2008 IP
  5. cheapez

    cheapez Active Member

    Messages:
    1,123
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    78
    #5
    They are using mod-rewrite,
    it's like yourdomain.com/subdirectory/
    or yourdomain.com/subdirectory/index.html?php?asp...
    I don't think that gonna helps your Serp either.
     
    cheapez, Dec 2, 2008 IP
  6. xtr33m

    xtr33m Active Member

    Messages:
    83
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    98
    #6
    subdirectory pages donst need an y extension ... becoz they refer previous or root page extension if they are mentioned !
     
    xtr33m, Dec 5, 2008 IP
  7. dejangex

    dejangex Peon

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    OR

    they use mod rewrite to do this:

    www.websitename.com/anything/5667/

    converts to

    www.websitename.com/anything.php?id=5667

    But you wont see the second link because its hidden from the praying eyes :eek::D
     
    dejangex, Dec 8, 2008 IP
  8. soccer05

    soccer05 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    its an index file i believe thats why
     
    soccer05, Dec 8, 2008 IP
  9. dejangex

    dejangex Peon

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If you use the folder/index file method, you would have to change all references to externall files in that index.html. Pictures would then be <img src="../images/banner.jpg" /> and if you create a folder in that folder then it would be <img src="../../images/banner.jpg" />. Why create more work for your self? Use modrewrite and put all files in the root unless you have a very good reason not to.
     
    dejangex, Dec 9, 2008 IP
  10. Ashley1415

    Ashley1415 Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Ashley1415, Dec 9, 2008 IP
  11. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #11
    You must be a newbie to asp/php .
    They use the "url rewrite" technology like .htaccess files and "IIS url rewriter".
    It is a way to make search engine friendly url .
     
    justinlorder, Dec 9, 2008 IP