How to redirect to www?

Hi,

Please advise how and where to set a redirect so all requests to https://fishingbook.net would redirect to https://www.fishingbook.net (with www). And I mean not just one url but all the requests to any url that are without www.

Thanks in advance.

Create a redirect rule here…
https://dash.cloudflare.com/?to=/:account/:zone/rules/redirect-rules

Copy this example exactly, just changing the host names…

Then you need to create a DNS record for @ here…
https://dash.cloudflare.com/?to=/:account/:zone/dns/records
…using a proxied dummy value of A 192.0.2.1 or AAAA 100::

2 Likes

Thanks for quick reply! But both your links redirects me to my account dashboard (not site dashboard).

You need to click the domain name, then the link will take to you the right page.

2 Likes

Thanks! I created (see attached screenshot). But redirect doesn’t work.

and created A record. still doesn’t work

The redirect is working ok (you may want to check the “Preserve query string” box to ensure query strings are included in any redirect), see…
https://cf.sjr.org.uk/tools/check?516bb82a7d214b8eac236b94afc39d6f#connection-server-https

You may need to clear your browser cache or use incognito/private mode to check it works at your end if you’ve previously visited the link and it’s cached in your browser.

1 Like

Thanks!

1 Like

A post was split to a new topic: How to configure redirect to www