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

What do the HTTP status codes in website logs mean? What does it mean?

Friends who do website SEO optimization know that...

The Ultimate Guide to Creating and Publishing Android Libraries

I am often amazed by the number of useful third-p...

Airbnb’s Growth Case Study

Airbnb, Chinese name:爱Airbnb , is a service websi...

6 steps to plan social fission activities and case analysis

Yang Fei of Luckin Coffee said that the most effe...

Talking about IP operation from the perspective of Perfect Diary’s marketing

Nowadays, with the continuous development of bran...

Latest discovery: When you fall asleep, cancer wakes up...

Breast cancer is one of the most common cancers, ...

7 content models for corporate TikTok accounts

What is the most popular social short video platf...

International first! Chinese scientists have made a major breakthrough

Quantum simulation experiments have made a major ...