How to optimize Dynamic URL?

Discussion in 'Search Engine Optimization' started by makhussy, Jan 11, 2010.

  1. #1
    Hi, I have one question. How can we optimize dynamic URL and what is the step we have to follow to optimize Dynamic Webite...............

    Thanks in advance.
     
    makhussy, Jan 11, 2010 IP
  2. easygreenstore

    easygreenstore Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you mean how to change a URL like this:

    www. examplesite.com/productspage.php?id=1234&cat=123

    into something like this:

    www. examplesite.com/products/[category]/[product id]

    ?
     
    easygreenstore, Jan 12, 2010 IP
  3. makhussy

    makhussy Peon

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, bt what is step to do this and setting
     
    makhussy, Jan 12, 2010 IP
  4. forump

    forump Peon

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    1. Search engines have problems creating links to dynamic content.
    2. If you can recognize these problems, you are halfway to getting your dynamic content indexed.
    3. Where practical, use static URLs to reference dynamic content.
    4. Otherwise, try to ensure your dynamic URL is linked to by content referenced by static URLs.
    5. Consider using paid-inclusion programs.
     
    forump, Jan 12, 2010 IP
  5. easygreenstore

    easygreenstore Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Where possible, try to minimise the number of variables passed in the URL.

    If you want to get a result like the above example I gave, you need to know a little bit about your .htaccess file settings.

    In this file, you need to write the following:

    Options +FollowSymLinks
    RewriteEngine on

    ...then you can tell browers to "rewrite" a URL, without redirecting by doing the following:

    RewriteRule ^products/([^/\.]+)/([^/\.]+)/?$ productspage.php?cat=$1&id=$1

    This rule will tell the browser that the following URL:
    www. example.com/products/garden/ponds

    ...is actually this URL:

    www. example.com/productspage.php?cat=garden&id=ponds

    Hope that makes sense!
     
    easygreenstore, Jan 12, 2010 IP