Redirect a Subdomain to a Website Page (Cloudflare URL Forwarding)
Example: send resources.4leggedit.com directly to www.4leggedit.com/resources.
This redirect happens before your website loads.
Your pre-rendered pages keep working normally on the main domain.
Quick Path
- Confirm you can log in to Cloudflare and open your domain.
- Create the `resources` DNS record and make sure it is proxied.
- Add a forwarding rule so resources.4leggedit.com redirects to www.4leggedit.com/resources.
- Test in a private/incognito window.
Step 1 β Confirm you can manage the domain in Cloudflare
This step makes sure you have the right access before you start.
If you cannot see the domain, you cannot set up the redirect.
- Log in to Cloudflare dashboard.
- Open the account that owns the domain.
- Click the domain you want to configure.
- If you do not have access, start with Cloudflare Account Setup.
You can open the domain settings in Cloudflare.
You can access DNS and Rules/Page Rules for the domain.
Step 2 β Create the subdomain in Cloudflare DNS
This step creates the subdomain that Cloudflare can match and redirect.
For the example, you are creating `resources.4leggedit.com`.
- Go to DNS for your domain.
- Create a DNS record for the subdomain (example name: resources).
- Use the same target you use for your main site (example: `www` or your domain without www like `yourrescue.org`).
- Make sure the record is proxied (orange cloud), so Cloudflare can apply forwarding.
- Save the DNS record.
`resources.yourdomain.org` exists in DNS and is proxied.
Cloudflare is now able to apply URL forwarding rules to it.
Step 3 β Add URL forwarding to your Resources page
This step makes Cloudflare redirect visitors to your main Resources page.
It is a clean, no-JavaScript redirect that works for browsers and search engines.
- In Cloudflare, open Rules (or Page Rules, depending on your account UI).
- Create a URL forwarding rule for the subdomain.
- Match URL: `resources.4leggedit.com/*` (replace the domain if needed).
- Forwarding type: 301 (permanent).
- Destination URL: `https://www.4leggedit.com/resources`.
- Save the rule.
Cloudflare shows the forwarding rule as active.
Any visit to `resources.4leggedit.com` redirects to `/resources`.
Step 4 β Test the redirect
This step confirms it works for real visitors.
Testing in a private window avoids cached results.
- Open a private/incognito browser window.
- Go to `https://resources.4leggedit.com`.
- Confirm you land on `https://www.4leggedit.com/resources`.
- Refresh once to confirm it stays consistent.
The redirect happens immediately.
The Resources page loads normally (including pre-rendered HTML).
Official References
Open these only if something doesnβt match your screen.
You do not need to read them to complete the guide.
Related How-To Sessions
How to Create Your Organization's Cloudflare Account
Get access to your domain and DNS in Cloudflare.
How to Transfer a Domain to Cloudflare
Move your domain registration to Cloudflare when you're ready.
Publish Your Website with Cloudflare Pages + GitHub
How the site is deployed and connected to your domain.
Want 4leggedIT to Set This Up?
Send us the subdomain you want (example: resources.yourdomain.org) and the destination page, and weβll configure the redirect safely.
