Guides Guides 6 min read 1,042 words

How to Redirect an Expired Domain with Cloudflare

Point an expired domain you now own to another site with a free Cloudflare account: a proxied placeholder DNS record plus one 301 Redirect Rule.

To redirect an expired domain you have registered, add the domain to Cloudflare, create a proxied placeholder DNS record for it, and then create a Redirect Rule that sends all requests to your target site with a 301 status code. No web hosting is needed for requests matched by the rule, because Cloudflare issues the redirect without contacting an origin server.

This guide covers the Cloudflare route. If you have hosting with Apache and would rather use a server file, see our guide on redirecting an expired domain with .htaccess.

Before you start

  • You must already own the domain. If you are still choosing one, read where to buy expired domains and why people buy them. Names that are available to register are on our expired domains list.
  • The domain must use Cloudflare as its DNS provider, which means changing its nameservers at your registrar. Our guide on how to use Cloudflare covers the setup, and Cloudflare's onboarding guide describes the same three parts: add the domain, review DNS records, update nameservers.
  • You need a target URL, for example https://example.com.

Why a placeholder DNS record is needed

Redirect Rules run on Cloudflare's network, so the request for your expired domain has to reach Cloudflare first. Cloudflare explains that only proxied records send HTTP and HTTPS traffic through its network, and that redirect rules are applied to that traffic. A freshly registered expired domain usually has no A, AAAA or CNAME record, so there is nothing to proxy. The fix is a placeholder record that is proxied (orange cloud). The IP address in it is never used for visitors, so it can be a dummy address; Cloudflare's own documentation examples use 192.0.2.1.

When you create a rule that matches a hostname with no proxied record, Cloudflare may also offer to create a proxied DNS record for you. Either way works. See how to turn on the Cloudflare proxy if you want more background on the orange cloud.

Explanatory diagram: Start with a domain you control: DNS routes visitors to the redirect service.. Return an HTTP redirect: The service sends the destination URL.. The browser follows it: The browser requests the destination.
Explanatory illustration, not a current dashboard screenshot or configuration test. Based on official documentation checked 13 November 2026: https://developers.cloudflare.com/rules/url-forwarding/single-redirects/

Step by step

1. Add a proxied placeholder record

  1. Log in to the Cloudflare dashboard and select your domain.
  2. Open DNS and add a record.
  3. Type: A. Name: @ (the domain itself). IPv4 address: 192.0.2.1. Proxy status: Proxied.
  4. Save the record.
  5. Optional: add the same kind of proxied record with the name www, so that www.yourdomain.com is redirected as well.

2. Create the Redirect Rule

These steps follow Cloudflare's current documentation for creating a redirect rule in the dashboard.

  1. In the Cloudflare dashboard, go to the Rules Overview page for your domain.
  2. Select Create rule > Redirect Rule.
  3. Enter a descriptive Rule name, for example "Redirect expired domain".
  4. Under When incoming requests match, choose how to match. Two common options are below.
  5. Set the Status code to 301 (permanent redirect).
  6. Select Deploy. If you are not ready, select Save as Draft.

Option A: send everything to one page

Choose All incoming requests, then set the target URL to a static address such as https://example.com. Every URL on the old domain lands on that one page.

Option B: keep the path and query string

Choose Wildcard pattern and use Cloudflare's example pattern from its hostname-redirect documentation. For the request URL enter http*://yourdomain.com/* and for the target URL https://example.com/${2}, with Preserve query string enabled. Then http://yourdomain.com/about/ goes to https://example.com/about/. Use this when the new site has matching URLs. If it does not, option A avoids a pile of 404 pages.

301 or 302?

Use 301 when the move is permanent. Cloudflare lists 301 and 308 as permanent and 302 and 307 as temporary. Google says it treats permanent server-side redirects as a signal that the target should be the canonical URL, and temporary ones as a signal to keep showing the source page. For an expired domain you plan to keep pointing at one site, 301 is the usual choice.

Test the redirect

  • Open the old domain in a private browser window and check where it lands.
  • Test both HTTP and HTTPS on each hostname you redirect. HTTPS needs a valid edge certificate for the old hostname before the browser can receive a redirect. Or run curl -I https://yourdomain.com and look for a 301 status and a location: header with your target URL.
  • If it does not work, check that the DNS record shows Proxied, that the nameservers at your registrar point to Cloudflare, and that the rule is deployed rather than a draft. Newly changed nameservers and rules can take a while to take effect, so retest after a short wait.

Cloudflare's troubleshooting page also suggests excluding the /.well-known/* path in rules that match many requests, because certificate validation and similar checks use it. With a rule that matches everything this only matters if you rely on such validation for the old domain.

Redirecting does not guarantee SEO value

People often redirect expired domains hoping to pass on old links. Whether that helps depends on the domain's history and on how relevant the old content is to the new site. Google's spam policies describe expired domain abuse as buying an expired domain and repurposing it mainly to manipulate search rankings with content that has little value to users. Google also says that legitimate redirects include moving a site to a new address; sneaky redirects are the ones meant to deceive users or search engines. Check what the domain was used for first (see do expired domains still work?) and redirect only to a site that genuinely fits.

FAQ

Do I need hosting to redirect an expired domain with Cloudflare?

No. With a proxied placeholder record, Cloudflare handles the request and issues the redirect, so no origin server is involved.

Is Cloudflare free for this?

Cloudflare's documentation tells you to select a plan when you onboard a domain, and rule limits depend on the plan. Check Cloudflare's current plan comparison before relying on it.

Can I use another method?

Yes. Your registrar may offer domain forwarding, or you can use an .htaccess 301 redirect on Apache hosting. For general Cloudflare redirects see our Cloudflare domain redirect guide.

Sources