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
Put this in your root .htaccess file: Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L] Matt Cutts on the topic: http://www.mattcutts.com/blog/seo-advice-url-canonicalization/
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: 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!
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
Absolutely, you'll want in the .htaccess file in the root, which is often the public_html folder depending on your setup.
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!