Redirecting non www to WWW

Hey, I’ve created redirection from non www to www and this is not working. Did I make mistake somewhere?

Hi @media13,

Because your DNS records are :grey:, your site is not proxied through Cloudflare. This means settings such as page rules won’t take effect. You’ll either need to handle the redirect on the origin or proxy the relevant records.

like this?

That’s everything proxied through Cloudflare now, so your redirect should work. You should consider whether all those subdomains should be proxied, though.

https://support.cloudflare.com/hc/en-us/articles/200169626-Identifying-subdomains-compatible-with-Cloudflare-s-proxy

In addition to what @domjh already said, you should also fix your encryption mode on Cloudflare as you currently have an insecure one set.

3 Likes

That page rule only matches https (not http) and redirects it to https://www.proxima.pl/* (asterisk literally).
You should instead do:
proxima.pl/*https://www.proxima.pl/$1
*.proxima.pl/*https://www.proxima.pl/$2
The $1 and $2 reference the wildcards.

1 Like

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