Canonical usage guidelines
In some cases, there may be two types of the same html page on the site, one is the mip page, and the other is the original page. Baidu will crawl these two pages and connect them using canonical tags.
Associated tags
You must add <link rel="canonical">
to the MIP to point to the original page to ensure a better MIP The weight of the original page is inherited.
At the same time, you can add <link rel="miphtml">
to the original page to point to the MIP, so that search engines can better discover the MIP you created.
Usage rules:
- Use <link rel="canonical">
in MIP page
, pointing to Original page (m station) can also point to the pc page pointed to by<link rel="canonical">
in the original web page. - If the MIP page does not have a corresponding original page, it will point to the url of the MIP page itself.
- Use <link rel="miphtml">
on the original page
(m station) to point to MIP Page.
Add the link tag in the head to let Baidu search discover your page
Both pages exist at the same time
在非 MIP 页中添加: <link rel="miphtml" href="https://m.baidu.com/mip/demo.html"> 在 MIP 页中添加: <link rel="canonical" href="https://m.baidu.com/demo.html">
If there is only the MIP page
It also needs to be added, pointing to yourself:
<link rel="canonical" href="https://m.baidu.com/mip/demo.html">
It is recommended that the file path of the new MIP page
should be as close as possible to the corresponding relationship between the URLs of the original web page and mip page Simple and direct. The document name or document id that appears on the original web page must also appear when naming the MIP page.
For example: the original page URL is: