Protecting Google Rankings During a Website Migration in Morocco
Website migrations — domain changes, platform changes, HTTPS migrations, URL restructuring — are among the highest-risk SEO events. I have managed 30+ Moroccan site migrations. Here is the checklist that prevents ranking losses.
The Fundamental Rule: Redirect Everything
Every URL that currently receives organic traffic or has inbound links must be redirected with a 301 to its new equivalent. Not just the homepage — every article, service page, product page, and category page. The most common migration mistake: redirecting the homepage and top 10 pages while leaving hundreds of long-tail pages returning 404. Those 404s represent accumulated link equity and indexation history that disappears if not redirected.
Pre-Migration Audit
Before migration: export the complete list of indexed URLs from Google Search Console (Coverage report → Submitted and indexed). Export your current backlink profile from Ahrefs or Google Search Console's Links report. These two lists define the minimum redirect coverage required — every URL in these lists needs a 301 destination.
The 48-Hour Post-Migration Protocol
Immediately after migration: submit the new sitemap in Google Search Console. Request indexing for the top 20 most important new URLs manually via the URL Inspection tool. Monitor the Coverage report daily for the first 2 weeks — a sudden spike in 404 errors indicates missed redirects. Monitor the Performance report for any click or impression drops on key queries.
HTTPS Migration in Morocco
For the common case of HTTP-to-HTTPS migration on Moroccan sites: ensure the SSL certificate is properly installed, test all internal links for mixed content (HTTP resources on HTTPS pages), configure 301 redirects for all HTTP URLs at the server level (not just WordPress), and update your canonical tags, sitemap, and Google Search Console property to the HTTPS version. Cloudflare makes HTTPS migration significantly simpler by handling SSL termination at the CDN level.
FAQ
How long does it take to recover rankings after a migration?
A well-executed migration with complete 301 redirects: 2–6 weeks for full ranking recovery as Google recrawls and reindexes. A migration with incomplete redirects or technical errors: 3–6 months or more, sometimes never fully recovering lost positions.
Should I migrate my Moroccan site from HTTP to HTTPS?
Yes — HTTPS is a confirmed Google ranking signal and a requirement for CMI e-commerce payment processing. The migration should be done carefully with the protocol above, but it should be done. There is no scenario in 2026 where staying on HTTP is the right choice.