Skip to content

Instantly share code, notes, and snippets.

@Weiyuan-Lane
Created July 15, 2019 15:20
Show Gist options
  • Save Weiyuan-Lane/57d13e095580ad6ad933c34bc4b9d691 to your computer and use it in GitHub Desktop.
Save Weiyuan-Lane/57d13e095580ad6ad933c34bc4b9d691 to your computer and use it in GitHub Desktop.
Cross canonical reference between main and AMP view
<!-- Add to your main view -->
<link rel="amphtml" href="/amp.html">
<!-- Add to your referenced amp view -->
<link rel="canonical" href="/">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment