Help to get started

Hello,

I started on Cloudflare because I need to redirect “my-domain-name.com” to “www.my-domain-name.com”. Then I see that Cloudflare can enhance my website protection and speed.

However I’m not sure if I am doing right so it would be great to provide me with some support.

I have a website hosted on hostinger and also a domain name from hostinger “schopp-gis.tech”.

Currently “schopp-gis.tech” redirect to my hostinger website but I added a CNAME alias to make “www.schopp-gis.tech” redirect to another website hosted on Pythonanywhere. This Pythonanywhere website is my new website and I want any request to “schopp-gis.tech” or “www.schopp-gis.tech” redirected to this new website (at “www.schopp-gis.tech”).

I subscribed a free account from Cloudflare (my website is a small personnal website).
When I created my account I have been asked for my website, I entered “www.schopp-gis.tech” but Cloudflare automatically renamed it “schopp-gis.tech”, this is worrying me, I’am afraid that any request to “www.schopp-gis.tech” get redirected to “schopp-gis.tech”, I need it the other way around.

When I check the overview tab, Cloudflare tells me that I need to transfert my server name, I know how to do it. Then what will append ? I know I need to set a rule into the “page rules” tab but what this rule will be ? In order to make any request to my domain-name (“schopp-gis.tech”) redirected to its CNAME aliase (“www.schopp-gis.tech”) ?

First, make sure your website does not have any redirects right now. None at all.

It’s normal for Cloudflare to refer to your domain without “www.” because that’s how the domain is registered.

Make sure that your DNS page here has entries for schopp-gis.tech as well as www.schopp-gis.tech and that they are both set to :orange:

Once your domain is added to Cloudflare, add this Page Rule:
Match: schopp-gis.tech/*
Add setting for Forwarding URL (Code 301) to: https://www.schopp-gis.tech/$1 (or http if you’re not using SSL)

This topic was automatically closed after 31 days. New replies are no longer allowed.