I would like to redirect all traffic from domain1.com (including all sub-domains) to index page of domain2.com using Cloudflare. Is it possible?
Furthermore, is it possible to not create any A records for domain1.com for this forwarding to work?
Thanks!
Under the Domain category, choose the Redirects menu. You'll see the Create a Redirect section. Here, you'll need to fill in which URL you want to Redirect and where you want it to Redirect To. Make sure your information is correct and choose the right connection protocol – HTTP or HTTPS.
To 301 Redirect an Entire Domain:Replace http://www.new-domain.com/ with the URL that you would like your site to redirect to. Be sure to add a blank line at the end of your . htaccess document.
Ok, it seems I fugured it out myself and this solution works:
*domain1.com/*
is 301-redirected to https://domain2.com
domain1.com
and it points to 1.1.1.1
*
which is an alias of domain1.com
Then I had to wait a couple of minutes for it all to take effect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With