Baidu PC page, H5 page jump adaptation optimal scheme

Given mobile wave surge and the glaring popularity of H5 page, baidu on the PC with the H5 pages jump adaptation ways introduced the optimal scheme: in the PC version of the page, add links to corresponding mobile site special rel = “alternate” tag, which helps to find baidu website where the mobile version of the web page; At the same time on the mobile page, add a link to the corresponding PC version of the url rel=”canonical” tag.

Such as:

The PC version of the web site: http://www.example.com/page-1

Mobile version of the web site: http://m.example.com/page-1

The comments in this example are as follows:

In the PC version of the web site (http://www.example.com/page-1), add:

< link rel = “alternate” media = “only screen and (Max – width: 640 px)” href = “http://m.example.com/page-1” >

In the mobile version of the web site (http://m.example.com/page-1), the comments should be:

< link rel = “canonical” href = “http://www.example.com/page-1” >

Stressed: before Meta tags (mobile agent) will continue to use, but we recommend HTMAL5 language to make the mobile page using the latest scheme to fit, jump in other languages such as XML jump mobile page adapter, need to continue to use before way of Meta tags – < Meta name = “mobile – agent” content = “format = [WML | | XHTML HTML 5]; Url = url “>

Leave a Reply

Your email address will not be published. Required fields are marked *