Pages Rules or Redirects

Hi. I have 2 domains registered with Cloudlfare - what would be the best way to redirect all visitors to exampledomain1.com over to exampledomain2.com? I was going to setup a page rule > URL > (Pick a setting) Forwarding URL > 301 permanent redirect > Destination URL I've also noticed under rules there is a 'Redirect Rules' option so any advice on which would be best - page rules, redirect rules, something else? Thanks!
4 Replies
Cyb3r-Jak3
Cyb3r-Jak313mo ago
Redirect rules are the recommended and newer way to handle redirects
arcorun
arcorunOP13mo ago
@Cyb3r-Jok3 Thanks! - I was having trouble getting a redirect to work but I have just noticed that the domain I want to redirect is not proxied via Cloudflare. I have 3rd party products setup on up that domain that require the proxy to be off. However, it looks like it needs to be for redirects to work? Single Redirects require that the incoming traffic for the hostname referenced in visitors’ requests is proxied by Cloudflare. https://developers.cloudflare.com/rules/url-forwarding/single-redirects/create-dashboard/
Create a redirect rule in the dashboard · Cloudflare Rules docs
Create rules that adjust incoming requests, change Cloudflare settings, or trigger actions.
Cyb3r-Jak3
Cyb3r-Jak313mo ago
Yeah you need proxy to be on. Otherwise the redirect rule will never get evaluated. You need a way to redirect at your origin
arcorun
arcorunOP13mo ago
Got it now, thanks again for your help.
Want results from more Discord servers?
Add your server