I have a question / challenge for you out there:
I am looking for a solution using page rules (if needed also CNAME records) to achieve following 301 - Permanent Redirects:
* "www.example.com" --> "https://example.com" * "www.example.com/site1" --> "https://example.com/site1" * "www.subdomain.example.com" --> "https://subdomain.example.com" * "www.subdomain.example.com/site1" --> "https://subdomain.example.com/site1"
In other words, I want to drop the “www” part for all possible scenarios.
I did have part success with the rule:
https://www. example.com/* Forwarding URL (Status Code: 301 - Permanent Redirect, Url: https://example.com/$1)
But this does not do the trick with subdomains for me. I tried a second rule:
www.*.example.com/* Forwarding URL (Status Code: 301 - Permanent Redirect, Url: https://$1.example.com/$2)
but this is not working unfortunately…
Who can help me solve this?