How to understand linkrel = "alternate" media = "handheld" href = "target "?

Source: Internet
Author: User
How do I understand linkrelalternatemediahandheldhreftarget? Poor language skills, how to understand link rel = "alternate" media = "handheld" href = "target"

This is the HEADER part embedded in a common webpage page. tell the search engine that the mobile phone version of the page is located in the href = "target" path?

If http://www.domain.com/article/123456.php is present on the home page
Relative phone version page is http://m.domain.com/article/123456.php

How to write href = "target" here? (It seems that target refers to the relative path. this second-level domain name ...)
In addition, how do I set the url rewrite. htacess file? Are the two article directories consistent? Or set separately? If they are consistent, then 123456. php is the same file. does php load different JS and CSS la s based on $ _ SERVER ['http _ USER_AGENT '] to distinguish between a common webpage and a mobile webpage?

Thank you.


Reply to discussion (solution)

Rel = "alternate"
Alternative version of the alternate document (such as printing pages, translations, or images ).

Media = "handheld"
Handheld device (small screen, limited bandwidth ).

Href = "target"
Open the linked document in the target framework

Still do not understand.
Rel = "alternate" media = "handheld" href = "target" must be added? Does it tell the search engine that the mobile phone version of this page is located at href = "target "?
For more information, see the document. the href = "target" is a relative path, not in the http: // format. how can I specify the m.domain.com second-level domain name?

Still do not understand.
Rel = "alternate" media = "handheld" href = "target" must be added? Does it tell the search engine that the mobile phone version of this page is located at href = "target "?
For more information, see the document. the href = "target" is a relative path, not in the http: // format. how can I specify the m.domain.com second-level domain name?
1) You do not need to add.
2) the designation of a second-level domain name is irrelevant to the domain name. it is only related to the root directory of your space.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.