Talk to an engineer

Drupal 7 end of life: migration options, including Next.js

Drupal 7 reached end of life on January 5, 2025. What that means for sites still running it, the four realistic ways off it, and how to move to Drupal 11, WordPress or a Next.js front end without losing content or rankings.

SeaPHP engineering · December 1, 2026

Drupal 7 reached end of life on January 5, 2025, fourteen years after its release. Drupal.org no longer publishes security advisories or releases for Drupal 7 core or its contributed modules. Sites still on it today are nearly two years past the last community fix.

Many of those sites are large and important: universities, local government, publishers, associations. They stayed because the move is genuinely hard. Drupal 8 and later are a different system, so there is no in-place upgrade, and every theme and custom module has to be rebuilt somewhere.

This guide sets out the realistic options, how to choose between them, and how to run the move so content, URLs and rankings survive it.

What end of life means for a Drupal 7 site

  • No security fixes. New vulnerabilities in core or contributed modules are not patched or announced by the Drupal security team. Attackers know which sites still run Drupal 7, because it is easy to fingerprint.
  • An old PHP runtime underneath. Many Drupal 7 sites run on PHP 7.4 or earlier, because modules broke on newer versions. That runtime is also past community end of life. Read what end of life actually means for the PHP side.
  • Compliance findings. Unsupported software is a standard finding under PCI DSS, HIPAA risk analyses and federal controls such as NIST SA-22. See the government guide and PCI DSS 4.0.
  • A shrinking talent pool. Fewer developers want to work on Drupal 7, and fewer modules will ever receive updates.

The four ways off Drupal 7

Option Best for Effort What you keep
Drupal 10 or 11 Complex content models, permissions, multilingual, heavy editorial workflow High: new theme, rebuilt custom modules, content migration Drupal concepts, content structure, editor familiarity
Headless Drupal with Next.js Teams that want Drupal's content model with a modern, fast front end High: the Drupal 11 work plus a Next.js front end As above, plus a front end your React team owns
WordPress, classic or headless Sites that are mostly pages and articles Medium: content migration and a new theme or front end Content and URLs; editors learn a new admin
Extended support, then move Sites that cannot move this year Low now, the full cost later Everything, for a limited time

Extended support is a bridge, not a destination. It makes sense when a migration is planned and funded, and the site needs to be safe until it lands.

How to choose

Answer these honestly before picking a destination:

  1. How structured is the content? Many content types with relationships, field-level permissions and translation workflows point to Drupal 11. Pages, posts and a few custom types point to WordPress.
  2. Who builds the front end? A team that works in React and TypeScript will move faster with a Next.js front end, whatever the back end.
  3. How much custom code is there? Count custom modules and what they do. Each is rebuilt in the destination, so a large count favors a destination your team knows well.
  4. Who edits, and how many? Large editorial teams with approval workflows rely on features Drupal has in core.
  5. What does it cost to run? Hosting, maintenance and the developer market differ between Drupal, WordPress and Next.js. Price three years, not the project.

Headless Drupal with Next.js

Drupal 8 and later ship the JSON:API module in core, which exposes every content type, field and relationship as a standards-based API with no custom code. Next.js reads from it and renders the public site, while editors keep working in Drupal. The open-source Next.js for Drupal project provides the pieces that are tedious to build yourself: preview of unpublished content, on-demand revalidation when content changes, and authenticated requests.

The resulting architecture:

  • Drupal 11 holds content, users, permissions and workflow, on a private network if you like.
  • Next.js serves the public site from static and server-rendered pages, revalidated when editors publish.
  • The Drupal 7 site keeps serving any URL that has not moved yet, behind Next.js, until the last template is done.

This pairs well with the strangler approach described in the PHP to Next.js guide: Next.js goes in front of the Drupal 7 site first, then takes over sections as their content lands in the new back end.

Moving the content

Drupal's Migrate API is the standard tool for Drupal 7 content. It reads the Drupal 7 database directly and maps nodes, users, taxonomy terms, files, menus and URL aliases into the new site. It also works as the source for non-Drupal destinations through custom scripts reading the same database.

Plan for these, which take longer than expected:

  • Field types without a direct equivalent, especially those from contributed modules such as Field Collection, which became Paragraphs in later Drupal.
  • Text formats and embedded media. Body fields often contain old embed codes, inline styles and absolute links to the old domain.
  • Files: paths, private files and images with no alt text.
  • Users and passwords. Drupal 7 password hashes can be carried into Drupal 11, which verifies them through the Password Compatibility (phpass) module and rehashes each one at the next login. Other destinations need a plan for password resets or hash compatibility.
  • Revisions. Decide how much history to keep. Migrating every revision of every node can multiply the migration time.

Run the migration repeatedly against fresh copies of production, not once. Every run should be scripted and repeatable, so the final cutover is a rerun, not an improvisation.

Keeping URLs and rankings

Drupal 7 sites tend to have old, well-linked URLs, which is valuable.

  • Migrate URL aliases along with the content, so /about/history stays /about/history.
  • Export the Redirect module's entries and recreate them in the new system.
  • Decide what happens to node/123 system paths, which are sometimes linked externally. Redirect them to the aliased URL.
  • Keep the same sitemap coverage, and compare titles and meta descriptions page by page before switching.

Running Drupal 7 safely until you move

Most migrations take months. In the meantime:

  • Put the site under an extended support agreement from a vendor in the Drupal Association's Drupal 7 Extended Security Support Program.
  • Move PHP to a supported version, or cover the old version with SeaPHP LTS if modules block the upgrade.
  • Turn off and remove modules you do not use, which shrinks the attack surface at no cost.
  • Put a web application firewall in front of it, and lock down /user/login and /admin to known networks where you can.
  • Take content-freeze decisions early, so editors know when the old site stops accepting new work.

If you need help choosing or running the move, start with a two-week assessment.

Questions we get asked

When did Drupal 7 reach end of life?

January 5, 2025. Drupal.org stopped publishing security advisories and releases for Drupal 7 core and contributed modules from that date.

Can I keep running Drupal 7?

The site keeps working, but new vulnerabilities in core and modules are no longer fixed by the community. If you have to stay for a while, buy extended security support from a vendor in the Drupal Association's Drupal 7 Extended Security Support Program, and run it on a supported PHP version.

Is there an automatic upgrade from Drupal 7 to Drupal 11?

No. Drupal 8 and later are a different codebase. Content can be migrated with Drupal's Migrate API, but themes and custom modules have to be rebuilt.

Should we move to Drupal 11 or to something else?

Stay on Drupal if you rely on its strengths: structured content, fine-grained permissions, multilingual sites and editorial workflows. If you mostly publish pages and articles, WordPress or a headless setup with Next.js may be cheaper to run.

What PHP version does Drupal 7 run on?

Drupal 7's last releases support PHP 8.x, but many contributed modules were never updated. Sites often run on PHP 7.4 or older, which adds an unsupported runtime to an unsupported CMS.

Find out what your PHP estate needs

Tell us which versions you run and where. An engineer replies within one business day.