0

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?

closed as off-topic by yoonix, HopelessN00b Feb 1 '15 at 0:21

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1

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 and CName www I need to point to? I leave it blank and got No A, AAAA or CNAME record found pointing to my-domain.com — root domain will not resolve. which seem to make page rule broke. – art Jan 31 '15 at 17:03
  • I updated my answer with the info you need... – Joe Sniderman Jan 31 '15 at 17:08
  • 1
    Thanks it work right now, I just point A record to my unused IP and page rule start working. – art Jan 31 '15 at 18:05
  • Excellent! Glad to hear it is working. : ) – Joe Sniderman Jan 31 '15 at 18:14
  • So in this case request would never reach my server right? because CloudFlare redirect all of them according to Page Rule. – art Jan 31 '15 at 18:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.