What is the preferred domain? How do I set my preferred domain?

What is the preferred domain? How do I set my preferred domain?

When searching for websites, careful friends will find that some websites display the URL as www.xxx.com, while some websites display the URL as xxx.com. What's going on? This is the preferred domain, so what is the preferred domain? How to set the preferred domain ? Today I will explain it to you in detail, let’s take a look!

What is the preferred domain?

The preferred domain, as the name suggests, is the domain name that is selected first. This choice is not given to the user, but to the search engine to choose, uniquely. The importance of domain names is ranked, and the website builder makes one of the domain names ranked in the search engine, which is the preferred domain. The selection of the preferred domain also requires some planning and setting in the early stage of website construction, otherwise it will have a great impact on the performance of the website in search engines in the later stage.

How do I set my preferred domain? We can set the preferred domain in two ways:

1. Use the 301 redirect method to set the preferred domain.

When searching for the domain name yunmajp.com/, you will be automatically redirected to www.yunmajp.com. Write the following code in the .htaccess file:
RewriteEngine on
RewriteCond %{http_host} ^mydomain.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]
This method allows users and all search engines to adopt the preferred domain.

2. Set the preferred domain through Google Webmaster Tools. (Google only)

In the Webmaster Tools console, select Tools, then click Set preferred domain.

Please select the first or second of the following three options (the first one is recommended):

Display the URL as http://www.yoursite.com; Display the URL as http://yoursite.com; Do not set association

Note: After the preferred domain of the website is determined, the preferred domain should be used in future SEO work, such as friendly links.

<<:  How to quickly improve website rankings? How to quickly improve keyword rankings?

>>:  How to create a breadcrumb navigation? How to modify the Robin breadcrumb navigation?

Recommend

User growth: How to establish a user perspective?

What is the user perspective? This is actually a ...

Autumn is here, today is the Cold Dew Festival

Today, we usher in the fifth solar term of autumn...

The growth formula of Liu Genghong's live broadcast room

Recently, Liu Genghong’s live broadcast has becom...

Where are the future opportunities in China's social field?

Recently, advertisements for a social APP have be...

Yuan Jianbo, founder of Shengjian Games: How to make VR games?

In 2016, VR swept the domestic technology market ...

Stop being emo! Beware of thyroid disease

Recently, #women with depression are more likely ...

The secrets of how to attract traffic from Douyin’s matrix account

There are many ways to do marketing on Douyin, am...

Changya APP Competitive Product Analysis Report

Traditional offline KTVs can no longer meet peopl...

How to attract traffic to products? How to get users hooked?

In traffic diversion , we not only need to pursue...