Two ways to set the preferred domain:
1. 301 redirect method to set the preferred domain.
So visit seo.com / time will automatically go www.seo.com. In htaccess file and write the following code:
RewriteEngine on
RewriteCond% {http_host} ^ mydomain.com [NC]
RewriteRule ^ (. *) $ Http://www.mydomain.com/ $ 1 [L, R = 301]
This method allows users to all search engines are used and preferred domain.
2. Set preferred domain via Goole Webmaster Tools. (Only suitable for Google)
Select Tools Webmaster Tools console, and then click to set the preferred domain.
Please select the first or second of the following three options (recommended first):
Display URLs as http://www.yoursite.com
Display URLs as http://yoursite.com
Correlation is not set
Note: After the site preferred domain determined, after SEO work, such as links, etc., to use the preferred domain.
Related articles:
Understanding the concept of preferred domain: Preferred domain-preferred domain
301 Redirect Details: 301 Redirect to URL standardize how to set?
Home »
Domain
,
link
,
Search engine
,
Search Engine Optimization
,
SEO
,
tools
,
url
,
webmaster
» How to set the preferred domain?

