Results 1 to 2 of 2

Thread: URL rewriting - best practices

  1. #1
    Registered
    Join Date
    Jun 2005
    Posts
    56

    URL rewriting - best practices

    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.

  2. #2
    Future AstonMartin driver r2d2's Avatar
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,608
    Quote Originally Posted by dvduval
    One concern I have in this example is the item is 5 level deep, and google often reduces pagerank by 1 for each level.
    This is completely untrue. PR is based on links, and has nothing to do with folder depth whatsoever.

    That a good way of doing it, but I would change 'item.php' to 'item' and use .htaccess to get it processed as PHP. This way SEs cant know you are using dynamic URLs.

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
  •