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.
#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, useseo basic tutorialinstead ofseo 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!