Mobile URL Annotation in Desktop Sitemaps

by Geethalakshmi 2012-12-27 16:32:31

Mobile URL Annotation in Desktop Sitemaps



Follow the below given annotation to showcase the mobile website url of the same desktop page.


<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://www.example.com/page-1/</loc>
<xhtml:link
rel="alternate"
media="only screen and (max-width: 640px)"
href="http://m.example.com/page-1" />
</url>
</urlset>


Similarly, rel="canonical" tag on the mobile URL should still be added to the mobile page's HTML.

Mobile Sitemap Format
1254
like
0
dislike
0
mail
flag

You must LOGIN to add comments