SitePoint Sponsor

User Tag List

Results 1 to 14 of 14

Thread: Usable URLs

  1. #1
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Usable URLs

    Some URLs are better than others. The effect of web addresses on usability and design. Have a read of this interesting article on A List Apart:
    http://www.alistapart.com/stories/slashforward/

  2. #2
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nicky, that's a great article! Off, am I, to rub in my friends' faces about why everyone should include /'s in their URLs (they call me nitpicky and stupid for manualy typing that extra /). Blood will run.

    -Colin
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  3. #3
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I'm glad you like it! I read hundreds of articles/papers a month. I just don't want to saturate the forums with links to them. So if anyone is looking for anything in particular just post and ask, if I have read it I shall let you know,

  4. #4
    SitePoint Evangelist thewitt's Avatar
    Join Date
    Apr 2001
    Posts
    468
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It would be interesting to benchmark this. I've always believed it's not a measurable difference, as the file handles are going to be cached anyway on a system with any traffic whatsoever.

    It would be interesting to run a benchmark and test the performance penalty of not including the trailing slash.

    -t
    myOstrich Internet
    OpenSRS Domain Registration, Digital Certificates
    Website Design, Hosted Email and now Blogware!

  5. #5
    SitePoint Enthusiast Crooner's Avatar
    Join Date
    Apr 2001
    Location
    Chambersburg, PA
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm interested in the Directories and Files section of the article...

    Are they proposing creating a site that is basically a block up tier'd subdirectories with an index.php file in each one?
    Dean-Martin.com Managed IT Solutions
    eLiveHost.com Premium Hosting
    4StateShopper.com Community Forums

  6. #6
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also don't forget to specify the file. I read in one of my oreilly manuals that it speed up page times. Simply because the server doesn't have to cycle through its list of acceptable index pages.

    http://www.foo.com/bar.htm

    Just a curious adon to the above article.
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  7. #7
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Crooner
    ... Are they proposing creating a site that is basically a block up tier'd subdirectories with an index.php file in each one?
    I believe that's what they were referring to, yes.

    -Colin
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  8. #8
    1-800-JMULDER JMulder's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,745
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excellent article, going to show that to my buddies too

    And with my last redesign I switched from name.php URL's to /directoryname/ URL's, it's a real luxury and I love it! Will never use anything else It's also easy for the visitors to remember, he or she won't need to remember those extensions.
    Jeroen Mulder

    w: www.jeroenmulder.com

  9. #9
    SitePoint Wizard silver trophy
    beley's Avatar
    Join Date
    May 2001
    Location
    LaGrange, Georgia
    Posts
    6,117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    But is it really a good idea to have numerous "index" pages on your site? Wouldn't appropriately named pages be better especially when pulling up in search engines, etc.??

  10. #10
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In Apache there's a content negotiation mod (which I'm too pressed to find). It's supposed to help serve different languages to different people, but it can also be used to hide the file extension. For instance, if I look up http://example.com/page, it'll serve up "page.html.en" for me and "page.jp.html" for someone who reads Japanese. It's a real neat feature, I think.

    ~~Ian

  11. #11
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    >>Are they proposing creating a site that is basically a block up tier'd subdirectories with an index.php file in each one?

    Not necessary.

    I followed in my web site that url approach using mod_rewrite rules of apache (inside httpd.conf).
    I have something like:

    /articles/ -->> call /articles.php (internally)
    /articles/22/ -->> call /articles.php?id=22 (internally)

    So I do not have an articles dir, it's virtual.
    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03

  12. #12
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by thewitt
    It would be interesting to benchmark this. I've always believed it's not a measurable difference, as the file handles are going to be cached anyway on a system with any traffic whatsoever.

    It would be interesting to run a benchmark and test the performance penalty of not including the trailing slash.
    just found this thread. the caching of files doesn't really matter. not including the trailing slash on directories makes more requests for the Web server. if you have a link to `domain.com/sub' the client will send the request `GET /sub', as you know. the client will then get the redirect, and perform a second request `GET /sub/'. (i just verified this in my log file.) so by not including the trailing slash, it causes the server to process another request and the client has to wait longer.

    BTW, linking to the root of a site `href="http://www.domain.com"', the trailing slash isn't needed. the client will always send the request `GET /'.
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR

  13. #13
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ...interesting observations

    but in the case of

    somesite.somewhere/articles/33
    ( no trailing slash )

    and with an internal redirection did with apache such as

    RewriteRule ^/articles/([0-9]+)$ /articles.php?id=$1 [T=application/x-httpd-php,L]

    only one request is did,
    or I hope so....
    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03

  14. #14
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes, that's correct.


Bookmarks

Posting Permissions

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