Home >Topics >SEO >How to determine your website's preferred domain

How to determine your website's preferred domain

silencement
silencementOriginal
2019-05-24 10:21:122571browse

How to determine the preferred domain of the website: 1. Open the website source code and view the head tag; 2. View the absolute address of the preferred domain in the website source code; 3. View the domain name with www in the external link.

How to determine your website's preferred domain

#From an SEO perspective, if you are not sure about the preferred domain of your website, it will often appear that the domain name without www is ranked, and the domain name with www is not ranked. If the preferred domain is determined, this will not happen. So how to determine the preferred domain of the website? (The following examples use www as the preferred domain)

1. Set

in the website source code and add it to the head of the website, which means the homepage of the website. The default address is www.aizhan.com, which will allow search engines to determine that the preferred domain of the website is www.aizhan.com (fill in your own address)

2. Use absolute in the page source code Address

Using absolute addresses instead of relative addresses in the source code of the website can also tell search engines which domain name is the preferred domain of the website. For example, use seo basic tutorial instead of seo basics Tutorial

3. Use a domain name with www for external links

After the website is built, it is also good to use a domain name with www when building external links. Will tell search engines which is the preferred domain to prevent search engines from giving wrong rankings

The above is the detailed content of How to determine your website's preferred domain. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn