I’ve two domains with same name but different TLD like .com and .net.
i’m using blog on “.com” domain and forum on “.net” domains like
Sites 1: “http://www.mywebsite.com/” (blog)
Site 2: “http://www.mywebsite.net/forum” (forum)
I’m facing problem with Google webmaster tool, webmaster tool trying to crawle my .com domain as forum hosted like “www.mydomain.com/forum” however forum not exist on .com domain. its exist on .net domain. so its generate 404 errors.
Please, let me know some code to to redirect “.com/forum/ {Plus Queries} /” to exact “.net/forum/{ Destination }” i believe its help to mark remove 404 errors or help to prevent more errors.
however, today I’ve set my robots.txt to disable Google crawling on “.com/forum”
In the htaccess file in your document root for the .com domain, add:
If both domains share the same document root, thus sharing the same htaccess file, then you’ll need to do an additional check for the host by using mod_rewrite instead of mod_alias: