Forwarding traffic to subdomain proxied to CF via htaccess w/o 301

Our site is currently using a CNAME setup and we’d like to use Cloudflare services on a subdomain, like: and forward all traffic going to our root to the proxied to Cloudflare.

We want to avoid using a 301 redirect and have the traffic to only ever see our root domain in the address bar.

  1. is the above possible using htaccess?
  2. what other steps do we need to consider? Assuming we will need to provision the Cloudflare Universal SSL as well per

Thanks for your help!

That’s more like domain masking, which Cloudflare doesn’t offer as a feature. But you can use Workers to do this within your own domain. This script should get you headed in that direction:

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