Adding www and https to a URL

Trying to find out how to direct traffic for both https://claresvahelp.com AND www.claresvahelp.com - at the moment, the website only appears if you type www.claresvahelp.com

I looked at previous articles within the community and I thought I had the settings correct but it’s still bringing up an error when I go to https://claresvahelp.com

Can someone help pls

Thank you

Do you create a redirect from your apex name (non-www) to www? You will want to do that. It is the first option in the following guide.

1 Like

Thank you so much for your response.

I haven’t created a redirect - would I do that in my domain registrar (Namecheap)?

My website was created on a platform called: https://www.dotcompal.com/ and it was setup with www.claresvahelp.com - I did not realise that typing https://claresvahelp.com would lead to 403 error

DotComPal support are unable to offer me a solution other than rebuilding the site without www. which I don’t want to do, so I thought the answer may be to add it to Cloudflare.

Are you recommending that I set a page rule in Cloudflare as follows: When incoming requests match Field: Hostname Operator: equals Value: example.com Then Type: Dynamic Expression: concat(“https://www.example.com”, http.request.uri.path) - sorry, I’m not very technical

No. Definitely not.

Pretty much. I am recommending that you use a Redirect Rule rather than a Page Rule, but what you described is a Redirect Rule and it looks good. You should give it a try and let us know if it meets your needs.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.