Gareev Denis
Gareev Denis

Reputation: 3

AMP: How can I create sitemap

My site based on AMP ( Accelerated Mobile Pages ); How can I create sitemap files if I have pages used ONLY AMP. Thanks.

Upvotes: 0

Views: 972

Answers (2)

Toby
Toby

Reputation: 8792

Sitemaps can point to any content, it is only by convention that they normally point to webpages, they can point to PDF files, Word Documents, html pages running AMP, etc!

Create your sitemap as normal and it will get picked up and indexed.

As abielita mentioned, if you also have standard HTML pages the preferred way is to have them in a sitemap and then use the rel="amphtml" link.

Upvotes: 1

abielita
abielita

Reputation: 13469

You can check on this tutorial. Be noted that AMP does not need a sitemap (HTML or XML) if the content is marked up correctly: engines know where AMP content is by this piece of code present in your regular pages: <link rel="amphtml" href="https://www.example.com/url/to/amp/document.html">. You can also check this link for more information and explanation. The sitemap is added to your website by simply using the customizable shortcode. [amp-sitemap append='amp' heading='AMP Sitemap' max='5']

Upvotes: 0

Related Questions