Add Mobile URLs to a Sitemap

Add Mobile URLs to a Sitemap

20.Nov.2021

It's important to mention that Google did not invent the concept of a sitemap. A sitemap is simply a list of URLs, and was introduced within Webmaster Tools by Yahoo! way back in 2003 . However, this tool has recently been enhanced with information about how crawlers should behave when they encounter certain URL patterns (e.g., if it detects an app download, such as http://www.example.com/app-name , then follow the URL scheme to find the content; requesting indexation via ?_escaped_fragment_= at the end of your URLs also works similarly).

If you do not have a mobile friendly site, be sure to check out our guide on Making Your Site Mobile Friendly .

·          Validate your mobile site - use Google's mobile-friendly test tool to make sure that search engines recognize your site as "mobile friendly." Google also provides best practices for creating mobile friendly sites.

We recommend validating your mobile version of the site in both Google Mobile-Friendly Test and Bing Webmaster Tools . After validation, add a link to each validated page using the 'Alternate' tag in your XML Sitemap file. This will signal to search engine crawlers or other webcrawlers that they should crawl these pages with special instructions on how to handle certain content types (such as images). For example: <url> <loc>http://www.example.com/page1</loc> <xhtml:alternate href="http://m.example.com/page1" hreflang="x-default"/> </url>

Integrate with mobile search (i.e., Google mobile search) - you can signal to mobile search crawlers whether your site is designed for mobile devices and whether crawling the desktop version is also important by using the 'mobile' and 'desktop' attributes in your robots.txt file: User-agent: * Disallow: / RewriteEngine: On Mobile: true Desktop: true

You should also use sitemaps to tell major search engines which pages on your site are mobile friendly - be sure to include those pages with a ?_escaped_fragment_= parameter in your URLs . By doing this, you're instructing crawlers to index these pages in mobile search results.

Here are the XML Sitemap specifications for adding mobile URLs to a sitemap:

<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <!-- We recommend using UTF-8 encoding --> <url> <loc>http://www.example.com/</loc> <mobile:alternate href="m.example.com"/> </url> </urlset>

Note that Google recommends not indicating how often you want your pages crawled using the 'changefreq' attribute.

For more information about using sitemaps with mobile URLs, check out Google's guide on Adding Sitemap Instructions for Mobile Devices .

Finally, be sure to monitor your search rankings in mobile search results , and if you're not yet familiar with how Google determines what page to show in the SERPs for a given user query (e.g., "best ice cream shops near me"), read up on Search engine result pages (SERPs) .

You can also read our guide on Getting Indexed by Google - Make Sure To Let Them Know About Your Site!   ↵   ↵   for more general guidelines on managing crawl rate.

Remember that crawling is different than indexing - crawling is how a search engine finds your page, whereas indexing refers to adding it to its database.

This was only an overview of mobile URLs in sitemaps - for more information about URLs in sitemaps specifically, check out our guide on Adding Mobile Content with Sitemaps . ↵   ↵   ↵

background information [to use as knowledge, not to be copied verbatim]: Tell major search engines like Google which web pages on your site are mobile friendly in a sitemap. Mobile friendly pages tend to rank higher in mobile search results.

·          Validate your mobile site - use Google's mobile-friendly test tool to make sure that search engines recognize your site as "mobile friendly." Google also provides best practices for creating mobile friendly sites.

·          Integrate with mobile search (i.e., Google mobile search) - you can signal to mobile search crawlers whether your site is designed for mobile devices and whether crawling the desktop version is also important by using the 'mobile' and 'desktop' attributes in your robots.txt file.

·          Use sitemaps to tell major search engines which pages on your site are mobile friendly - be sure to include those pages with a ?_escaped_fragment_= parameter in your URLs .

·          By doing this, you're instructing crawlers to index these pages in mobile search results.

·          You can also read our guide on Adding Mobile Content with Sitemaps for more information about URLs in sitemaps specifically.

·          Finally, be sure to monitor your search rankings in mobile search results , and if you're not yet familiar with how Google determines what page to show in the SERPs for a given user query (e.g., "best ice cream shops near me"), read up on Search engine result pages (SERPs) .

·          You can also read our guide on Getting Indexed by Google - Make Sure To Let Them Know About Your Site! for more general guidelines on managing crawl rate.

·          Remember that crawling is different than indexing - crawling is how a search engine finds your page, whereas indexing refers to adding it to its database.

·          This was only an overview of mobile URLs in sitemaps - for more information about URLs in sitemaps specifically, check out our guide on Adding Mobile Content with Sitemaps. ↵   ↵   ↵

Note that Google recommends not indicating how often you want your pages crawled using the 'changefreq' attribute.

For more information about using sitemaps with mobile URLs, check out Google's guide on Adding Sitemap Instructions for Mobile Devices .

Finally, be sure to monitor your search rankings in mobile search results , and if you're not yet familiar with how Google determines what page to show in the SERPs for a given user query (e.g., "best ice cream shops near me"), read up on Search engine result pages (SERPs) .

You can also read our guide on Getting Indexed by Google - Make Sure To Let Them Know About Your Site! for more general guidelines on managing crawl rate.

Remember that crawling is different than indexing - crawling is how a search engine finds your page, whereas indexing refers to adding it to its database.

This was only an overview of mobile URLs in sitemaps - for more information about URLs in sitemaps specifically, check out our guide on Adding Mobile Content with Sitemaps . ↵   ↵   ↵

Note that Google recommends not indicating how often you want your pages crawled using the 'changefreq' attribute.