SitePoint Sponsor

User Tag List

Results 1 to 17 of 17
  1. #1
    SitePoint Addict blizzman24's Avatar
    Join Date
    Jul 2004
    Location
    Texas
    Posts
    345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    which url is better?

    mypage.com/sub/hi

    or

    mypage.com/sub/hi.html


    I know how to make sites with urls like the first example, but I have no idea how to attatch the .html onto it b/c "hi" is not actually a web page. It's just information my script uses to pull the appropriate info from the DB to display on the page.

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    First one is better, but if you are using mod_rewrite

    RewriteRule ^(.*)\.html$ blah.php?var=$1
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Addict blizzman24's Avatar
    Join Date
    Jul 2004
    Location
    Texas
    Posts
    345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wait what does that do? attatch a .html onto my pages?

  4. #4
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i think second is better.

  5. #5
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by bhav27
    i think second is better.
    I'd like to hear why you think this.

    The first is better because it does not tie itself to a file extension. Cool URIs don't change.

  6. #6
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i said second is better because its shows search engines its a static html pages which they like.

    but after reading your URL i m confused.

  7. #7
    SitePoint Member
    Join Date
    Sep 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I always felt second was better too, but after reading stymiee's link, first one might be better after all...
    AffiliateAgora.com - Affiliates Conversion Tools
    LinkWow.com - Have you added your site yet?

    eWebSolving.com

  8. #8
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by bhav27
    i said second is better because its shows search engines its a static html pages which they like.
    SEs don't acctully care about the extension, if they can view with out downloading the crawl the content. The first one is also more human friendly and visitors don't have to remember an extionsion.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  9. #9
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    ^^

  10. #10
    SitePoint Member
    Join Date
    Dec 2003
    Location
    Washington
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is why forums are full of garbage. Too many people can't agree on one thing.

    The first URL is better. All of the search engines rank index files in folders higher.

    These two rank the best:

    mypage.com/sub/
    mypage.com/132/

    This ranks lower than the top two:

    mypage.com/sub/hi

    And below ranks the lowest, using a URL like that will actually hurt your rankings quite a bit:

    mypage.com/sub/hi.html

  11. #11
    SitePoint Wizard bronze trophy hooperman's Avatar
    Join Date
    Jan 2006
    Location
    Manchester, UK
    Posts
    4,301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How did you come to that conclusion amax? I'm not saying you're wrong, just interested how you tested this.

  12. #12
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by amax View Post
    This is why forums are full of garbage. Too many people can't agree on one thing.

    The first URL is better. All of the search engines rank index files in folders higher.

    These two rank the best:

    mypage.com/sub/
    mypage.com/132/

    This ranks lower than the top two:

    mypage.com/sub/hi

    And below ranks the lowest, using a URL like that will actually hurt your rankings quite a bit:

    mypage.com/sub/hi.html
    I'd love to see you evidence for this because this sounds like total garbage. Non-index pages rank just as well as index pages. Every page is treated as its own and ranked on its relevancy. Not where it stands in the site's directory structure.

  13. #13
    I am Learning... Vick!'s Avatar
    Join Date
    Oct 2005
    Posts
    632
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so stymiee we should always create directories and put index files in it instead of creating files?

    like:
    www.site.com/contact-us/

    is better than

    www.site.com/contact-us.php

    am I right?

  14. #14
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Yes but not by a whole lot. The big difference is that you don't have an extra keyword in your url (php) and not having file extensions mean you can change technologies without having to change URLs.

  15. #15
    SitePoint Addict northbeach23's Avatar
    Join Date
    Aug 2006
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First one is better than the second one.

  16. #16
    I am Learning... Vick!'s Avatar
    Join Date
    Oct 2005
    Posts
    632
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks stymiee

  17. #17
    Non-Member
    Join Date
    Dec 2006
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i've converted lol

    i was going to say second but it looks like it's the first.


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
  •