Design an AMP deprecation with parity and redirect plan.
Assistant
The user wants a plan to deprecate Accelerated Mobile Pages (AMP).
This plan needs to include:
Parity: Ensuring the non-AMP experience matches or exceeds the AMP experience (performance, UX, SEO).
Redirects: A strategy for handling existing AMP URLs to avoid 404s and preserve SEO equity.
Audience: Likely a Product Manager, Tech Lead, or SEO Specialist working for a publisher or e-commerce site. The tone should be professional, structured, and actionable.
Key Phases of Deprecation:
Audit & Analysis: What do we have? What's the impact?
Parity Development (The "Why"): Why are we leaving? (Usually cost, control, UX flexibility). We need to make sure the replacement is good enough.
Technical Implementation (The "How"): Removing tags, setting up redirects.
Rollout & Monitoring: Staged approach.
Cleanup: Removing the old code.
Detailed Breakdown:
Phase 1: Strategic Justification & Audit
Why deprecate? (Google dropped the "AMP cache" requirement for Top Stories in 2021, so the main SEO carrot is gone. The stick is usually maintenance cost/lack of flexibility).
Audit: How many URLs? What's the traffic split?
Phase 2: Achieving Parity (The Critical Path)
Core Web Vitals (CWV): This is non-negotiable. If AMP goes, the replacement must be fast (LCP, CLS, FID/INP).
Features: What does AMP do that the canonical site doesn't? (Carousels, sticky ads, infinite scroll). These must be ported.
Ads: AMP ads often pay differently or load differently. Need to ensure revenue stability.
Phase 3: The Redirect Strategy (Preserving SEO)
The amphtml link: Remove the rel="amphtml" tag from the canonical pages. This tells Google to stop indexing the AMP versions.
The 301 Redirects: Once Google clears the index, redirect the /amp URLs to the canonical versions.
Wait: Do not redirect immediately. If Google is still indexing AMP, redirecting might cause a "redirect chain" confusion or slow down the index swap.
Self-canonicalizing: The AMP page usually has a <link rel="canonical">. When deprecating, the AMP URL should eventually 301 to the canonical.
Edge case: What if the site structure changed? (Likely not, usually just stripping /amp).
Phase 4: Communication & Timeline
Stakeholders (Ad ops, Editorial, SEO team).
Timeline: It's not an overnight switch. It takes weeks for Google to de-index.
Structuring the Response:
I will organize this into a "Project Plan" format with specific workstreams:
Executive Summary
Workstream A: Feature Parity & Performance (The "Canonical" Upgrade)
Workstream B: Technical SEO & Redirects (The Migration)
Workstream C: Ads & Revenue Protection
Rollout Schedule
Refining the "Redirect" logic (The trickiest part):
Current state:example.com/page (Canonical) points to example.com/page/amp via <link rel="amphtml">.
Step 1: Remove amphtml link from Canonical.
Step 2: Wait for Google to de-index AMP pages (Search Console data).
Step 3: Enable 301 Redirects from /amp to canonical.
Why wait? If you redirect while Google still thinks /amp is a separate mobile page, you might confuse the crawler. Actually, best practice is often to keep serving the AMP page until it drops out, OR serve the canonical content at the AMP URL but with a canonical tag pointing to the main URL, then redirect.
Best modern approach:
Stop generating AMP for new content.
Remove amphtml tag from existing pages.
Convert the AMP URL to serve the Canonical content (dynamic rendering) but with a noindex or just let it sit?
Actually, the standard safest way:
Remove rel="amphtml" from the Canonical page.
Keep the AMP page live for a short buffer period (with link to canonical).
Google drops AMP from index.
301 Redirect /amp -> /canonical.
Let's refine the "Parity" aspect:
Signed Exchange (SXG). If the goal was the "instant load" feel of AMP, the canonical site needs SXG to maintain that Google Search "pre-load" advantage. I should mention this as a high-value technical add-on.
Self-Correction/Review:
Is this too technical? No, the prompt asks for a "plan," implying a PM or Engineering context.
Did I cover Ads? Yes, crucial for publishers.
Did I cover Analytics? Need to mention tracking differences.
Drafting the Content:
Title: AMP Deprecation & Migration Plan.
Sections: Objective, Prerequisites, The 4-Phase Plan.
Phase 1: Audit & Parity (CWV, SXG).
Phase 2: Signals (Removing amphtml).
Phase 3: The Switch (Redirects).
Phase 4: Cleanup.
Let's write it.
This is a comprehensive project plan for deprecating Accelerated Mobile Pages (AMP). This plan focuses on minimizing traffic loss, maintaining Core Web Vitals (CWV), and ensuring a smooth transition for both users and search engines.
Executive Summary
Goal: Transition from a dual AMP/Canonical ecosystem to a single, high-performance Responsive Web Design (RWD) ecosystem.
Primary Risk: Temporary drop in mobile search ranking during re-indexing; "Page Experience" ranking penalty if the new canonical page is slower than the AMP page.
Mitigation: Strict performance parity gates and a phased redirect strategy.
Phase 1: Parity & Technical Preparation
Before turning off AMP, the main site must be as fast (or faster) than the AMP version.
1. Performance Parity Audit
AMP pages benefit from the AMP Cache and pre-rendering. To lose traffic, your Canonical pages must match this speed.
Benchmark Current AMP: Record CWV (LCP, CLS, INP) for the top 100 landing pages using CrUX data.
Optimize Canonicals:
Implement lazy loading for images/video.
Streamline CSS/JS blocking resources.
Consider Signed Exchanges (SXG). This allows your canonical site to be pre-fetched by Google Chrome/Googlebot, mimicking the "instant load" feel of AMP without the framework lock-in.
2. Feature Parity
Ensure no functionality is lost when users move from AMP to the main site.
Analytics: Ensure tracking tags (GA4, Adobe, etc.) on the canonical page match the AMP triggers exactly.
Ads: AMP ads often have specific formats. Ensure ad slots on the canonical page use the same sizing logic to prevent CLS (Cumulative Layout Shift).
Consent/Privacy: Verify GDPR/CCPA banners function identically.
Phase 2: The "Soft" Deprecation (Signal Shifting)
Do not delete AMP pages immediately. You must tell Google to stop prioritizing them first.
1. Remove the rel="amphtml" Link
This is the most critical step.
Action: Edit your CMS/Header to remove the <link rel="amphtml" href="..."> tag from your Canonical pages.
Effect: This tells Google Search: "Stop associating this Canonical page with an AMP version."
Timeline: Monitor Google Search Console (GSC). Wait for Google to re-crawl the Canonical pages and drop the AMP association (usually 1–2 weeks for high-traffic sites).
2. Update Sitemaps
Remove AMP URLs from your XML sitemaps.
Ensure only Canonical URLs are listed and submitted in GSC.
Phase 3: Redirect Strategy
Once Google has de-indexed the AMP pages in Search Results (SERPs), you can handle the technical shutdown.
1. The Redirect Logic
You have two choices for handling the /amp URL path:
Option A (Recommended): 301 Permanent Redirect. Redirect example.com/page/amp to example.com/page.
Pros: Consolidates link equity (SEO juice) back to the main page.
Cons: None, provided you waited for de-indexing.
Option B (Temporary): 302 Found. Use this only if you are unsure if the canonical page is stable.
2. Implementation (Nginx/Apache/Edge Logic)
Add a redirect rule at the server or CDN level (Cloudflare/Akamai).
Nginx Example:
nginx
# Redirect all AMP URLs to the canonical version
location ~ ^/(.*)/amp$ {
return 301 /$1;
}
Note: Adjust regex based on your specific AMP URL structure (e.g., ?amp=1 vs /amp/).
3. Handling the "Sticky" AMP Cache
Google stores copies of AMP pages in their cache. Even after you delete your files, the cached version might exist for days.
Removal Request: Use the Google Search Console "Removals" tool to expedite the removal of outdated AMP cache URLs.
Cache-Control Headers: Ensure your new redirects send Cache-Control: no-cache headers initially to force Google to recognize the change.
Phase 4: Monitoring & Cleanup
The migration is not over when the code is deployed.
1. Monitoring Dashboard (First 30 Days)
Track these metrics daily:
Crawl Stats: Is Googlebot spending time on /amp URLs? (Should drop to zero).
Index Status: Check site:yourdomain.com/amp in Google. Should return 0 results eventually.
Core Web Vitals: Compare the Canonical page CWV scores against the old AMP benchmarks.
404 Errors: Watch for any internal links or external backlinks pointing to /amp URLs that missed the redirect logic.
2. Code Cleanup
Once the redirects are stable:
Remove AMP Plugin/Component libraries from the CMS (reduces server load).
Remove AMP-specific CSS styles.
Remove <meta name="amp-link-rewriter"> tags if used.