Drupal Migrations 2026-11-10 ยท 8 min read

Migrating from Drupal 7/9 to Drupal 11 Without Losing SEO: Architecture Guide

Carlos Del Hierro
Carlos Del Hierro
Senior Drupal 10/11 & AI Architect ยท 10+ years Drupal experience
Migrating from Drupal 7/9 to Drupal 11 Without Losing SEO: Architecture Guide

Migrating a legacy portal from Drupal 7 (or upgrading an outdated Drupal 8/9 platform) to Drupal 11 on PHP 8.4 is not a simple database update: it is a data architecture transformation. Over the last decade, working on municipal, regional, and university portals, I have refined a repeatable process that guarantees zero data loss and preserves organic search rankings.

1. Audit Entities, URLs, and Redirects First

Before writing a single migration YAML file, map every source content type, taxonomy vocabulary, file attachment, and URL alias. The biggest risk in any public-sector or enterprise migration is breaking thousands of indexed URLs.

  • Export all legacy paths from url_alias (D7) or path_alias (D8/9).
  • Configure Pathauto patterns in Drupal 11 to match the legacy URL structure whenever possible.
  • Use the Redirect module with automated 301 migration plugins for any URL pattern that changes.

2. Custom Migration Plugins with Drupal Migration API

Instead of relying on brittle UI-only migrations, encapsulate your migrations inside a custom module (e.g., my_portal_migrate) using migrate_plus and migrate_tools:

id: d7_node_institutional_news
label: "Institutional News (D7 to D11)"
migration_group: municipal_portal
source:
  plugin: d7_node
  node_type: noticia
process:
  nid: tnid
  title: title
  status: status
  created: created
  changed: changed
  "body/value":
    - plugin: media_wysiwyg_filter
      source: "body/0/value"
  "body/format":
    plugin: default_value
    default_value: full_html
destination:
  plugin: "entity:node"
  default_bundle: noticia

3. Preserving Multilingual Translations (ES/EN)

When migrating multilingual portals, always migrate the default language base entities first, followed by a dedicated translation derivative migration with translations: true in the destination plugin.

4. Pre-Launch Performance & Security Verification

Once migrated to Drupal 11 and PHP 8.4, verify that Internal Page Cache and Dynamic Page Cache return X-Drupal-Cache: HIT for anonymous traffic, and audit all contributed modules with composer audit.

#Drupal 11 #Migration API #SEO #PHP 8.4 #Drush

Want to implement this in your Drupal platform?

Have questions about this architecture, Drupal 11 + PHP 8.4, or AI/MCP workflows? Feel free to reach out and connect.