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

Analysis of Taobao APP user system operation

This article attempts to be a systematic design g...

What should I do if I spend money on Baidu promotion but there is no effect?

I believe that many business owners or managers w...

A complete online event promotion planning plan!

The Chinese Valentine's Day is coming soon. H...

Some "crazy" marketing

"Forrest Gump" said: "Life is like...

Why do you always fail in promotion?

After three months of closed development, the App...

How to carry out user operations well? Share 5 points!

When it comes to user retention, not all users ar...

The sixth course of the poetry typesetting training camp for you

Course Catalog: Lesson 1: Introduction to typeset...

The app is now available. These suggestions may help it become a hit

The APP sharing and recommendation website Product...

How to promote a new brand?

The relationship between brands is like the relat...