Redirect question for a .com & .net version of same domain

by 13 replies
15
I have a new client that is using the .net and .com version of the same domain. They have the exact same content on both. So to keep from getting a duplicate content penalty, I want to redirect the .net to the .com version, so would a 301 redirect be the best option or would doing a domain forwarding be best?

Thanks
#programming #domain #net #question #redirect #version
  • What I'v done in the past is just to forward the domain via the registrar.

    It's neater and you don't need to keep the hosting account for the redirected site.



    Cheers
    Tim
    • [1] reply
    • I was thinking the same thing too but the odd thing is I have been updating their WordPress site and all the changes I make on the .com domain are also changing on the .net version as well.
  • Mraffiliate, I am unsure of what you mean. When you redirect as Tim suggested (which is the cleanest way), the .net version just redirects to the .com version. So, in essence, there really is no .net website.
    • [2] replies
    • Check the DNS. Both are probably already pointing to the same host either via A record or cname. (based upon what you said)

      If that is already the case, at a minimum, add a canonical link element to every page specifying the .com version as authoritative.

      However, probably better from a Google point of view is to 301 redirect all .net traffic to the .com. That would mean specifying a 301 in the .htaccess file.
      • [1] reply
    • Here is what I finally discovered happening:

      1- 5 yrs ago my client had his site and .net & .com domains hosted at 1&1. His site was on the .com "his primary domain"

      2- 2 yrs ago he domain forwarded the .net to the .com "domain forward, not a 301 redirect"

      3- 2 months ago Client was having issues with his WordPress site on 1&1 and tech support told him that WordPress was quirky on their servers so my client decided to open a hosting account at HostGator. Client didn't know how to transfer his site to another host so he had a "friend" do it for him. This friend built a new site on both the .net & .com at HostGator, somehow making both sites share the same mysql database. This site was a new WordPress design and a lot of the links on the new site were different than the old site. He also made the .com an add-on domain and the .net the primary.

      Ok, now the new sites are complete. This friend deleted the old site at 1&1 and did not do any 301 redirects. So now when I log into WebMaster tools, he is getting new 404 errors.

      Also Google has already indexed the old site that was at 1&1, the new .com and .net sites at HostGator. So there is duplicate content all over the place.

      The real quirky thing that was happening too was when I updated the .com through the WordPress Admin panel, the same changes occurred on the .net as well since they were sharing the same database. So when I typed in the .net domain in my browser, the same site and content would appear that was on the .com and when I would move my mouse over the links, they pointed to the .com.

      Me and tech support at HostGator had to go in and delete the .com as an addon domain, change it to the primary domain, and take the .net out of the same database.

      I had to go back in to HostGator and add the .net as an add-on domain so that I could do the 301 redirect to the .com

      I know people say just do a 301 redirect from domain A to domain B but Google recommends doing a link to link 301 redirect. Since this friend didn't do any 301 redirects from the old site to the new one, I will just have to deal with the 404 crawl errors by putting removal requests to Google. Eventually the crawl errors will stop and the indexed pages from the .net will drop out of Google's index.
  • If that doesn't work, you can create a .htaccess file for the .net and add this code to redirect all its juice to the .com:
    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://newsite.com/$1 [R=301,L]
    • [2] replies
    • I may have to do this. Adding the .net as an add-on domain and then redirecting it to the .com isn't working through HostGator's cpanel.

      Will a 301 redirect WordPress plugin work? I have wondered if the plugins actually write to the .htaccess file.
      • [1] reply
    • I would go this route since you already have it hosted.
  • Yes, if the .net is running WordPress, you can use a plugin, or just add the above code to the .htaccess file. A plugin like WordPress › WP htaccess Control « WordPress Plugins allows custom code to be added to the htaccess file. Remember to save your Permalinks afterwards.
    • [1] reply
    • The .net isn't running wordpress. The .net is hosted at a different hosting company. The .net DNS is pointed to HostGator is all. This is why the tech support suggested making the .net an addon domain and then doing a 301 redirect through the cpanel. I did this but it didn't work.

Next Topics on Trending Feed

  • 15

    I have a new client that is using the .net and .com version of the same domain. They have the exact same content on both. So to keep from getting a duplicate content penalty, I want to redirect the .net to the .com version, so would a 301 redirect be the best option or would doing a domain forwarding be best? Thanks