How to setup redirect of blog posts on subdomain to posts on main domain with Cloudflare DNS?

Hello.

Any suggestions on how to achieve the below with Cloudflare DNS?

IF visitor go to:
https://subdomain.domain.com/post-example

THEN Visitor will be redirected to:
https://www.domain.com/post-example

The goal is to keep whatever post-example while redirecting.

Thanks!

Hi @alex123,

I would start off by having a read of Using page rules to perform redirects and the linked support article and watching the explanation video.

You will probably want something like

subdomain.domain.com/*

Forwarding URL

https://www.domain.com/$1

with a :orange: DNS record for subdomain.

Please just let us know if you need further help!

2 Likes

This topic was automatically closed after 14 days. New replies are no longer allowed.