how to prevent duplicated content?

Discussion in 'Apache' started by GFX^^, Jun 28, 2006.

  1. #1
    GFX^^, Jun 28, 2006 IP
  2. nddb

    nddb Peon

    Messages:
    803
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I could be wrong, so don't take my word for it, but why not a 301 redirect? Does that count as dupe content? If so, google is not really following the rules, it should see that as a permanent move, drop the old page and add the new.

    I've just rewritten a tooon of pages to a new style, the old style is 301'd to the new style.. let you know how that goes.. lol.
     
    nddb, Jul 17, 2006 IP
  3. sreyas

    sreyas Well-Known Member

    Messages:
    128
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #3
    try this


    
    RewriteCond %{HTTP_HOST}   !^www\.mysite\.com [NC]
    RewriteCond %{HTTP_HOST}   !^$
    RewriteRule ^/(.*)         http://ww.mysite.com/$1 [L,R]
    
    Code (markup):
     
    sreyas, Jul 21, 2006 IP
  4. sunday

    sunday Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
    RewriteRule ^(.*)$ http:// www. example. com/$1 [R=301,L]
     
    sunday, Jul 24, 2006 IP