I use CloudFlare as DNS and want to point one of my site say productA.com to my main site my-main-site.com/productA. Is this possible with CloudFlare?
1 Answer
Yes, use a page rule... Cloudflare documents this quite fully:
https://support.cloudflare.com/hc/en-us/articles/200168306-Is-there-a-tutorial-for-Page-Rules-
Now, granted, you'll need to have cloudflare's acceleration enabled for the domain(s) you want to redirect. (HTTP redirections do NOT happen at the DNS level.. they happen via HTTP therefore you NEED cloudflare to be proxying the HTTP for this to work...) In order for that to happen, add an A record pointing to a webserver you control, and make sure cloudflare CDN is enabled on that record.
-
Yes, I have read that, but what
A record
andCName www
I need to point to? I leave it blank and gotNo A, AAAA or CNAME record found pointing to my-domain.com — root domain will not resolve.
which seem to make page rule broke.– artJan 31, 2015 at 17:03 -
-
1Thanks it work right now, I just point A record to my unused IP and page rule start working.– artJan 31, 2015 at 18:05
-
-
So in this case request would never reach my server right? because CloudFlare redirect all of them according to Page Rule.– artJan 31, 2015 at 18:21