Tag Info

Hot answers tagged

3

The problem here is that GoDaddy provides you a virtual host for DNS name mysubdomain2.mydomain2.com. When you try to enter the site with mysubdomain1.mydomain1.com, the browser first makes a DNS lookup for the domain name. The lookup results in CNAME record telling to look up IP address for mysubdomain2.mydomain2.com, and make the request there. The web ...


2

Try: RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] This should work. Here is mine: RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]


1

It is a nicety that both www and non-www forms of a site exist. However, it is better for search that this does not happen. It is better that one 301 redirect to the other. The reason for this is simple and two fold: one, no duplicate content; and two, search metrics/prowess is not divided over the two. It is far better to have one site that performs well ...


1

Turn off the cPanel redirect. Not sure what it is doing or how. But clearly it is not working right. Create an .htaccess file in your sub-domain root directory with: RewriteEngine on RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] ...in it. Obviously change example.com to your domain name. That should do what you want. If you do not know where ...


1

See Do subdomains help/hurt SEO? Here what Google's Matt Cutts has to say about sub-domains vs folders My personal preference on subdomains vs. subdirectories is that I usually prefer the convenience of subdirectories for most of my content. A subdomain can be useful to separate out content that is completely different. Google uses subdomains for ...



Only top voted, non community-wiki answers of a minimum length are eligible