Creating SE Friendly URLs

Discussion in 'Search Engine Optimization' started by dvduval, Jun 10, 2005.

  1. #1
    Let's suppose we have a script that is generating some code like this:
    somesite.com/item.php?c=4&sc=15&id=47
    "c" is the category, and let's presume category #4 is "widgets"
    "sc" is sub-category, and let's presume #15 is "accessories"
    "id" is the item id, and let's presume #47 is a "widget cleaner"

    It seems the school of thought these days to rewrite such a url would be to produce something like this:
    somesite.com/item.php/widgets/accessories/widget_cleaner/
    I'm seeing quite a few seos use this method, and it seems their site is getting indexed well. One concern I have in this example is the item is 5 level deep, and google often reduces pagerank by 1 for each level.

    But is general though, I would love to hear your comments about the above or similar examples.
     
    dvduval, Jun 10, 2005 IP
  2. kalius

    kalius Peon

    Messages:
    599
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Where do you get this from? Page Rank is based on link popularity and the PR of these links.

    Since most people get incomming links to home page, the homepage tend to have higer PR and internal pages lower.

    Your real problem ( this is from google's webmasters guidelines):
     
    kalius, Jun 10, 2005 IP
  3. iShopHQ

    iShopHQ Peon

    Messages:
    644
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Some rewriters keep it at top level, albiet with a longer URL, so your URL might end up looking like:

    somesite.com/item~c~4~sc~15~id~47.htm
     
    iShopHQ, Jun 10, 2005 IP
  4. carowan

    carowan Peon

    Messages:
    473
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What shopping cart are you using?

    If OS commerce or Zen cart, there are contributions to make the URL's more SE friendly.
     
    carowan, Jun 10, 2005 IP
  5. jkid

    jkid Guest

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    is there a difference between .php and .html the way googlebot sees it? basically is it better to have a .html url than a .php?
     
    jkid, Jun 10, 2005 IP
  6. jkid

    jkid Guest

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i was wondering is it betta to have a .htm rather than the full .html extension???

    does it make a difference?
     
    jkid, Jun 10, 2005 IP
  7. seo_expert

    seo_expert Well-Known Member

    Messages:
    475
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    123
    #7
    I don't think it really makes any difference.

    Google does not differentiate between .htm or .html file extensions, so you can use .htm, .html.

    But just be consistent and not to use .hml for some pages and .html for the rest.
     
    seo_expert, Jun 11, 2005 IP
  8. Trepan

    Trepan Peon

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    .php or .html doesn't make a difference. It's the same for the crawlers.

    What comes to peoples mind is that .php are dynamic pages so they are not so good. The dynamic part that affects the crawlers are the variables in the url like ?id=whatever and you can have .html pages with those too.

    Because of this a lot of people make the php parser parse .html too, so they don't have to use .php, which just adds load to the server.
     
    Trepan, Jun 15, 2005 IP
  9. Design Agent

    Design Agent Peon

    Messages:
    3,061
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #9
    somesite.com/accessories/widget_cleaner/
    Really I would have it like that, if I could. If there is a link from your homepage it will make no difference to the search engines. For visual purposes, less directories look a little better.
     
    Design Agent, Jun 15, 2005 IP
  10. Blogmaster

    Blogmaster Blood Type Dating Affiliate Manager

    Messages:
    25,924
    Likes Received:
    1,354
    Best Answers:
    0
    Trophy Points:
    380
    #10
    agreed, don't have too many folders and don't make the url's too long.
     
    Blogmaster, Jun 15, 2005 IP
  11. Design Agent

    Design Agent Peon

    Messages:
    3,061
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #11
    ..and use a structure that is common sense to a person- visitors should be able to 'guess' the url.
     
    Design Agent, Jun 15, 2005 IP
  12. letsmakeamillion

    letsmakeamillion Well-Known Member

    Messages:
    319
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    108
    #12
    how about including all files in the root directory... like 4000 of them or so... will they fit in there or what is the max number of files you can put in one directory in unix / linux server?
     
    letsmakeamillion, Jun 15, 2005 IP
  13. Yukio

    Yukio Peon

    Messages:
    137
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #13
    index.php?page=etc should be fine. If you use dynamic urls, keep the extra chars to a minimum. Google shouldn't have a problem if it's just one "?"

    They have indexed my entire site http://www.pinkpt.com even though I use dynamic URLs
     
    Yukio, Jun 18, 2005 IP