Sitewide 301 Redirect http:// AND LLL.com

Discussion in 'Search Engine Optimization' started by roflux, Apr 8, 2008.

  1. #1
    Guys I have a site that has both http://www.blahblah.com and blahblah.com (this isn't the actual domain).

    It is my understanding that google will penalise this and see the two sites as duplicate content. I need to do a 301 redirect sitewide ASAP.

    Any info would help.
    Thanks
     
    roflux, Apr 8, 2008 IP
  2. qeorge

    qeorge Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    qeorge, Apr 8, 2008 IP
    roflux likes this.
  3. roflux

    roflux Peon

    Messages:
    560
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    +rep Thankyou george.
     
    roflux, Apr 8, 2008 IP
  4. kakakaka

    kakakaka Banned

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4


    thanks for information
     
    kakakaka, Apr 9, 2008 IP
  5. qeorge

    qeorge Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Glad to help roflux. Thanks for the rep. :D

    Let me know if you have any trouble getting it working.
     
    qeorge, Apr 9, 2008 IP
  6. turksweb

    turksweb Peon

    Messages:
    354
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi George,

    what if this kind of stuation;

    I have built one web site, but I had used before many domain name. for example; www.blahh.com, www,blahh.org and www.blahh.net

    when I started build web site, I just tried search the domain name.org from google. today, I have seen my org domain name more indexed and .com domain is not very much. all domain name uses some content and design. I want to show on google top only the .com result, then maybe .org result. the web site is new and already .lorg domain has 11k index, but .com domain only 1.600.

    I think because of the dublicate content, some contents shows only on my .org domain name and that contents doesn't indexed on my .com domain name. this is for me one big problem.

    how can i redirect 301, permanently from google to .com domain name? if from google webmaster tool I delete the .org site, then google will index my .com site or not?

    thank you George.
     
    turksweb, Apr 9, 2008 IP
  7. qeorge

    qeorge Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    @turksweb:

    I'd put this into your .htaccess files on your secondary domains (i.e. the .net and .org):

    For the .net:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^.*blahh\.net [NC]
    RewriteRule ^(.*)$ http://www.blahh.com/$1 [R=301,L]

    For the .org:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^.*blahh\.org [NC]
    RewriteRule ^(.*)$ http://www.blahh.com/$1 [R=301,L]

    You may lose some pages in the index temporarily, but they should come back.

    Let me know if it works!
     
    qeorge, Apr 12, 2008 IP
  8. thecheapsters

    thecheapsters Peon

    Messages:
    183
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    i have tried this on my site and you have to edit you .htaccess file which is i think in you root or PUBLIC folder
     
    thecheapsters, Apr 12, 2008 IP
  9. qeorge

    qeorge Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Absolutely, you'll want in the .htaccess file in the root, which is often the public_html folder depending on your setup.
     
    qeorge, Apr 12, 2008 IP
  10. turksweb

    turksweb Peon

    Messages:
    354
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Hi George,

    thanks for the information. my site was in asp / mysql and i have already written the redirect function in asp. yes you are right, first seems like i had lost some index, but timely it shows up.

    thanks again George! :)
     
    turksweb, Apr 29, 2008 IP