3021 problem. anyone seen this?

Discussion in 'Apache' started by umpaplumpa, Jun 20, 2007.

  1. #1
    if someone has experience this before please share

    i have a domain on an apache server www.domain.se.
    its an old domain i i used to have index.asp?id=34&sida=501
    i tired to redirect it to www.domain.com

    the problem is that google has indexed the pages www.domain.se?id=34&sida=501 with the same title as the startpage


    my .htaccess code for this

    RewriteCond %{HTTP_HOST} ^domain.se [NC]
    RewriteRule ^(.*)$ http://www.domiain.se/$1 [L,R=301]

    anybody got a clue? is it duplicate content?

    Best regards Tobi

    MVH
    Tobias
     
    umpaplumpa, Jun 20, 2007 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #2
    You are not rewriting the query string. So at the moment, the query part of the URL (e.g. ?id=34&sida=501) is being ignored.

    Use the QSA flag:
    RewriteRule ^(.*)$ http://www.domain.se/$1 [QSA,L,R=301]
    Code (markup):
    PS. Be a bit more careful please, especially with the topic title (3021 instead of 301...)
     
    krt, Jun 20, 2007 IP
  3. umpaplumpa

    umpaplumpa Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks! i tried the qsa command but it still remains on domain index.asp?id=34&sida=501 without the 301


    hmmmm
     
    umpaplumpa, Jun 21, 2007 IP