Question about URL rewrite

Discussion in 'Search Engine Optimization' started by web_junkie, Oct 24, 2008.

  1. #1
    HI I do not if this is the best place to post this question, but I will give it a try anyways. If for example I have the following url:

    www.mysite.com/results.php?category=12

    and I successfully rewrite it to:

    www.mysite.com/chulucanas-pottery

    The search engines will add the url page as www.mysite.com/chulucanas-pottery because all other site links are pointing at this url, however this page is still accessible with www.mysite.com/results.php?category=12. Will this be a problem, because search engines can add this url also and this will create a duplicated content. Is there a way to fix this in the case search engines add both urls.

    Thanks
     
    web_junkie, Oct 24, 2008 IP
  2. kidsnscience

    kidsnscience Banned

    Messages:
    411
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    its needed when u have dynamic pages
     
    kidsnscience, Oct 24, 2008 IP
  3. web_junkie

    web_junkie Active Member

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    I been doing some research and I think this is the right question:

    In order to rewrite the url from

    mysite.com/results.php?category=12

    to

    mysite.com/chulucanas-pottery

    I have this:

    RewriteEngine On
    RewriteRule ^chulucanas-pottery$ results.php?category=12

    now i want to redirect all traffic that goes to

    mysite.com/results.php?category=12

    to

    mysite.com/chulucanas-pottery


    How would I do this

    I try this but does not work:

    RewriteCond %{QUERY_STRING} category=12
    RewriteRule ^results\.php$ chulucanas-pottery? [R=301,L]

    Thanks
     
    web_junkie, Oct 24, 2008 IP
  4. servantofgod

    servantofgod Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    go to

    Tell the mod there exactly how you want your rewrites done, he'll direct you. I just had him assist me in doing so a couple of weeks ago.

    I can tell you though, it's really pointless. They say that google cannot read dynamic urls but it is not true. For instance, there are probably hundreds of digital point forum posts indexed in google, and they are all dynamic urls, as you see above.
     
    servantofgod, Oct 24, 2008 IP
  5. web_junkie

    web_junkie Active Member

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    I do not see any links, and I am sure Google reads dynamic urls, if it affects your ranking that I do not know, I guess in same way.
     
    web_junkie, Oct 24, 2008 IP
  6. servantofgod

    servantofgod Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    forumdotmodrewritedotcom
     
    servantofgod, Oct 24, 2008 IP