Redirect tutorial #TutorialFeedback 7

I can’t find how to make subdomain URL redirect work.

I need to keep my @ and www records pointing to an existing host, and need to redirect only a specific subdomain. Here’s my situation:

I have an existing site at https://olddomain.com. This site is hosted via Webflow https://webflow.com/

The Webflow custom DNS set up requires that if DNS is hosted at Cloudflare, the DNS records must not be proxied.

Per the Webflow custom domain instructions I have 2 x A records and one CNAME record for www pointing to my primary Webflow site. This all works fine.

I then introduced a Ghost blog/newsletter site at https://newsletter.olddomain.com. This blog is hosted by Ghost Pro https://ghost.org/

I’ve now decided to migrate the Ghost blog/newsletter site to its own dedicated domain https://newdomain.com. This is now all set up and active in Ghost custom DNS setup, and works just fine.

Ghost custom DNS similarly requires that if hosted via Cloudflare, the DNS proxy must be disabled.

Both olddomain.com and newdomain.com have DNS hosted by Cloudflare.

I now need to set up a redirect rule so that any traffic to https://newsletter.olddomain.com will be redirected to https://newdomain.com. Ideally I want to preserve the query string so that traffic to individual blog posts like https://newsletter.olddomain.com/blog_post_1/ will redirect seamlessly to https://newdomain.com/blog_post_1/

The Cloudflare redirect documentation I can find, including in #TutorialFeedback 7, requires me to have A records under olddomain.com for both @ and for www pointing to a dummy IP 192.0.2.1.

I can’t do this because I need both these records to point to the real destination for my primary site at Webflow. I only want the traffic for the newsletter.olddomain.com subdomain to be redirected.

How can I preserve the DNS records for my primary site at https://olddomain.com and https://www.olddomain.com while enabling redirect from https://newsletter.olddomain.com to https://newdomain.com?

The tutorials describe the root domain process or the www process because those are the most common use cases. www is a DNS name like foo or bar or newsletter. You would follow the setting up a redirect for www and substitute newsletter for www.

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.