1. On the pc page, add a special link rel pointing to the corresponding mobile URL = "alternate" tag, which helps Baidu discover the location of the site's mobile pages;
<link rel="canonical" href="http://mobile_url" >
2. At the same time on the mobile page, add a URL pointing to the corresponding pc link rel = "canonical" tag.
<link rel="alternate" media="only screen and(max-width: 640px)" href="http://pc_url" >
value | description |
---|---|
alternate | Alternative versions of the document (such as print page, translated or mirror). |
stylesheet | External style sheet document. |
start | The first document in the collection. |
next | The next document in the collection. |
prev | On the set of a document. |
contents | Contents of the document. |
index | Index of documents. |
glossary | Used in the document word glossary (explanation). |
copyright | Documents that contain copyright information. |
chapter | Chapter of the document. |
section | Section of the document. |
subsection | Section of the document. |
appendix | Appendix document. |
help | Help documentation. |
bookmark | Related Documents. |