AMP版本的SEO疑问及AMP URL设为规范URL的技术咨询
Hey there! Let’s walk through how to properly configure your AMP-powered blog pages as the canonical URLs, based on your site structure and requirements.
Step 1: Add Self-Pointing Canonical Tags to AMP Pages
Since you want your AMP pages to be the primary versions, every page in your /my-blogs section (like www.example.com/my-blogs or www.example.com/my-blogs/first-blog) needs a canonical link pointing to itself. This tells search engines this is the official, index-worthy page.
Add this snippet to the <head> of each AMP page:
<link rel="canonical" href="https://www.example.com/my-blogs/first-blog">
Make sure the href value matches the full, exact URL of the AMP page (use HTTPS if your site supports it—this is best practice for SEO).
Step 2: Resolve Existing Non-AMP Blog Pages (If They Still Exist)
If you still have the original non-AMP versions of your blog pages (e.g., accessible via a separate URL or the same path serving non-AMP content in some cases), you need to redirect their canonical tags to the corresponding AMP page.
For example, on an old non-AMP page like www.example.com/legacy-my-blogs/first-blog, add this to its <head>:
<link rel="canonical" href="https://www.example.com/my-blogs/first-blog">
If the same URL now serves AMP content (replacing the old non-AMP version), you can remove the non-AMP page entirely to avoid duplicate content issues.
Step 3: Ensure AMP Page Validity
Even with canonical tags set, your AMP pages must meet AMP’s technical standards to be properly recognized by search engines. Run validation checks to confirm no errors exist—most AMP-compatible platforms have built-in validation tools, or you can use the AMP project’s native validator to spot issues like missing required tags or invalid scripts.
Step 4: Update Your Sitemap (Optional but Recommended)
If you use an XML sitemap, update it to include only your AMP blog URLs as canonical entries. Remove any old non-AMP blog URLs from the sitemap (or mark them as non-canonical if they’re still live) to guide search engines directly to your preferred pages.
Key Best Practices
- Avoid conflicting tags: Never set a non-AMP page as canonical for an AMP page if you want the AMP version to be primary. Stick to this rule: AMP pages point to themselves; non-AMP pages (if any) point to the AMP version.
- Be consistent: Apply these changes across every page in your
/my-blogssection—mixing canonical tags will confuse search engines. - Verify with webmaster tools: After implementation, use search engine webmaster tools to confirm that your canonical URLs are being correctly detected.
内容的提问来源于stack exchange,提问作者Robert Thomas

