I am using cloudflare to manage my domain, and I wanted to add a subdomain. I tried to do this:
But it gives me an error. How would I add a subdomain like blog.example.com that sends to example.com/blog ?
Webmasters Stack Exchange is a question and answer site for webmasters. It only takes a minute to sign up.
Sign up to join this communityThe error you are receiving is because CNAME's only support domain names and not URL paths. You can setup a redirect using your hosting account or Cloudflare Page Rules.
14 Step Cloudflare Process in redirecting traffic from subdomain to main domain using Page Rules:
CNAME
using the drop-down optionsNAME
Domain name
Add Record
button.alexa.example.com/*
in the URL match fieldForwarding URL
and click it301 - Permanent Redirect
http://example.com/alexaSkillDemo
blog.example.com
appears in the address bar, redirect =blog.example.com
changes toexample.com/blog