Migrate Your Website to Cloudflare: What Changes and How Redirects Work

Moving to a site served from Cloudflare changes how pages are built and delivered, and it needs careful handling of the domain, the email and every old address. Here is what changes and what to check.

Free, no obligation

What Does Migrating a Website to Cloudflare Actually Mean?

Migrating a website to Cloudflare means the new site is built in advance and served from Cloudflare's network, with no plugins, no page builder and no database behind it. The pages are sent ready-made, which is why the site is fast and why there is far less on it to patch.

It is a different way of running a site from the one many businesses are used to. A traditional site builds each page from a database when someone visits. A site built in advance has already built every page, so a visit is just a file being delivered, from a location close to the visitor. There is no database on the public side and no login page for bots to try.

The move still needs the same care as any migration. Every old address needs a redirect, the titles and structured data have to be carried across, and the domain and email settings have to be handled so nothing is interrupted. The difference is mainly in how the new site is built and where it lives, and in how redirects are set up.

I build sites for Cloudflare and move existing sites onto it. It starts with a free audit, and if your site is quick and works well, I will say that a move is not needed. The website migration hub covers the general process.

What Changes When a Website Moves to Cloudflare?

Some things change a great deal and some not at all. Knowing which saves surprises.

How Pages Are Built

Pages are built once, in advance, and not assembled from a database on every visit.

Where the Site Lives

It is served from Cloudflare's network, close to the visitor, and not from a single server.

What Needs Patching

There are no plugins or server software of yours to keep updated, so the routine of updates largely disappears.

How You Edit It

The site comes with a simple editor set up around your own pages, in place of a general-purpose admin area.

What Stays the Same

The address your customers use, the way the pages look and the content that ranks can all stay as they are.

What Needs Care

Redirects, DNS and email are handled deliberately, because those are the parts where a move can go wrong.

A small plant under a clear glass bell jar on a pale table in soft daylight

Moving DNS and Email to Cloudflare Without Interrupting Either

DNS and email are the parts of a move that are easy to forget and very visible when they fail. They are looked at first.

DNS is the system that tells the internet where your domain points. Moving a site to Cloudflare often means changing where the domain's DNS is managed, and it needs a careful list of every record that exists now, including those for email, verification and any other services that rely on the domain.

Email runs on its own records, and they are copied across exactly and left alone. A mistake here can stop mail arriving, so the records are recorded before anything changes and compared afterwards. It is the single most important safeguard in the move.

Who holds the domain registration and the DNS settings is established at the start, because it is often a different person from the one running the website. Having access ready avoids the most common cause of delay. A short list of who to contact at each provider, kept with the plan, saves hours if a record needs to be changed in a hurry.

How Redirects Work on Cloudflare Pages and One Important Caveat

On a site served from Cloudflare Pages, redirects are declared in a simple file. It is easy to use, with one caveat that can quietly undo the work.

Cloudflare's documentation says to declare redirects in a plain text file called _redirects, placed in the static asset directory of the project. Each redirect goes on its own line, with the source, the destination and an optional status code. Once the redirect map is written as rules in that file, they apply to the site's pages.

The caveat is that redirects in the _redirects file are not applied to requests served by Pages Functions, even if the route matches. A site that uses Functions for any route must handle those redirects in the code, or exclude the route from Functions. A redirect that looks correct in the file can therefore fail to fire, and the only way to find out is to test the live site.

There are also limits on how many redirects the file can hold, and Cloudflare documents a way to go beyond them for large sites. A big redirect map is planned with that in mind, and every rule is tested after the switch.

Cloudflare or a Traditional Host: How the Two Compare for a Migrated Site

The difference is mostly in what runs when someone visits, and what you have to keep up to date.

How a site served from Cloudflare and a site on a traditional host compare in general terms
What mattersSite built in advance on CloudflareTraditional site on a host
What runs on a visitA prebuilt file is deliveredSoftware and a database build the page
Updates to keep up withNone for plugins or server softwareThe platform, plugins, theme and PHP
Login page open to the worldNoOften yes
Where it is served fromA network close to the visitorUsually one server
EditingA simple editor around your own pagesA general-purpose admin area
A bright loft room with pale timber roof beams and open windows, spare and uncluttered

Will My Rankings Hold If I Move My Website to Cloudflare?

They can, because moving host is not what threatens rankings. What threatens them is losing the signals each address has earned.

Google says that 301 and other permanent redirects do not cause a loss in PageRank, so a complete redirect map and a careful carry-over of titles and markup protect a move to any platform. The host is the least of the risks.

Speed is where Cloudflare can help. Google says good Core Web Vitals, along with other page experience aspects, align with what its core ranking systems seek to reward, and a prebuilt page with no plugin code to load has a head start. A faster site is not a guarantee of higher rankings, but it removes a common weakness.

The comparison is set out factor by factor in Cloudflare vs WordPress, and the guide on Cloudflare and WordPress hosting covers the middle path of keeping WordPress behind Cloudflare.

How a Move to Cloudflare Works, Step by Step

The move follows the same four steps as any migration, with extra care over DNS and redirects.

  1. Audit and Record

    The old site is crawled and every DNS and email record is written down before anything changes.

  2. Map and Build

    Redirects are mapped and the new site is built in advance, with titles and markup carried across.

  3. Test on Staging

    Redirects, links, forms and speed are checked in private, including any Functions routes.

  4. Switch and Verify

    DNS is switched carefully, email is checked, the live redirects are tested and Search Console is watched.

Wide pale double doors open onto a calm view of sky and soft clouds above a timber floor

When Moving to Cloudflare Is Not the Right Answer

A site served from Cloudflare is a good fit for many businesses, and it is not the answer to every problem.

If your current site is quick, stable and brings in enquiries, a move adds risk for little gain, and the honest recommendation is to leave it. The same is true if the only complaint is how it looks, which a redesign can fix on the current platform.

It also suits some sites better than others. A site with a large amount of frequently changing data, such as a busy shop or a members' area, may need features that a prebuilt site handles differently, and the audit looks at what the site really needs.

If you want the speed and security benefits without a full move, there is a middle path. Keeping WordPress and putting Cloudflare in front of it can help, though the site still carries its plugins and updates. I can talk through which fits your site before you decide.

Migrating Your Website to Cloudflare: Questions, Answered

What does it mean to migrate a website to Cloudflare?

The new site is built in advance and served from Cloudflare's network, with no plugins, page builder or database behind it. The pages are delivered ready-made, which makes the site fast and leaves far less to keep patched.

Will I lose my Google rankings if I move to Cloudflare?

The host is not what threatens rankings. A complete redirect map and a careful carry-over of titles and markup protect the move, and Google says permanent redirects do not cause a loss in PageRank.

How do redirects work on Cloudflare Pages?

They are declared in a plain text file called _redirects, one per line, with the source, the destination and an optional status code. The file lives in the static asset directory of the project.

Is there a catch with redirects on Cloudflare Pages?

Yes. Cloudflare says the _redirects file is not applied to requests served by Pages Functions, even if the route matches. Any such route needs its redirects in the code, so the live site is always tested.

Are there limits on how many redirects I can have?

Yes, the file has limits, and Cloudflare documents a way to go beyond them. A large redirect map is planned with that in mind, and the whole list is tested after the switch.

What happens to my email when I move DNS?

Every DNS record, including those for email, is recorded before anything changes, then copied across exactly and checked afterwards. Email is left alone, so mail keeps arriving through the move.

Who needs to give access for the move?

Whoever holds the domain registration and the DNS settings, which is often a different person from the one running the website. Sorting access at the start avoids the most common delay.

Will I still be able to edit my site?

Yes. The new site comes with a simple editor for changing text, photographs and fees yourself, set up around your own pages, so there is far less to learn than in a general-purpose admin area.

Is a site with no database safe?

A site built in advance has no database or login page on the public side, so the usual routes of attack are not there. Nothing is entirely risk-free, but there is far less to attack and no plugins to patch.

Can I keep WordPress and just use Cloudflare in front of it?

Yes, and it can help with speed and some protection. The site still carries its plugins and updates, so it is a middle path and not a full move. The <a href="/wordpress/cloudflare-hosting">Cloudflare and WordPress hosting</a> guide covers it.

Does moving to Cloudflare make my site faster?

A prebuilt page with no plugin code to load usually starts with an advantage, and Google says good Core Web Vitals align with what its ranking systems seek to reward. It is not a guarantee of higher rankings.

What does moving to Cloudflare cost?

It depends on the size of the site and how much is rebuilt, and you receive a fixed price in writing before any work starts. The <a href="/website-migration/cost">website migration cost</a> page explains what drives it.

Should I leave WordPress for Cloudflare?

Only if the problems keep coming back. The <a href="/website-migration/wordpress">WordPress migration services</a> page sets out the honest outcomes, which include fixing a few things and leaving the site alone.

Sources

Checked on 24 November 2026. Rules and guidance change, so the official pages named below are the place to confirm the current position.

  1. Cloudflare Pages docs: Redirects
  2. Google Search Central: Site moves with URL changes
  3. Google Search Central: Core Web Vitals

Website Migration Services Built to Keep the Rankings You Have Earned

Send me your current website address and I will tell you plainly what is working, what is holding it back and whether a move is worth it. Free, with a fixed price agreed before any work starts.

Get your free audit A plain-English look at your site, with no obligation. Go now →