I’m struggling for the past half hour to post this, because, stupidly enough, the forum for domain-related questions doesn’t allow new users to post 4 links, even if they’re enclosed as code blocks.
“disable” www by always redirecting to the apex domain,
have a “shortcut” of iulianonofrei.io for iulianonofrei.com.
This means that any combination like http://www.iulianonofrei.io, https://iulianonofrei.io, https://www.iulianonofrei.com should redirect to https://iulianonofrei.com.
For future-proofing, it would be nice if paths and query params are also supported (and correctly transferred during the redirect).
From all the DNS and redirect (single, bulk, etc.) options available to us, what would be the most idiomatic and correct way to achieve this?
It was set to “Automatic”, as I thought that the website knows better than me, and that it enforces https with it.
I changed it to “Full (strict)” for both domains.
Enable “Always use HTTPS”…
I confirm that it was active for both domains.
See…
Before setting up this AAAA DNS rule, should I delete the A DNS rule pointing to 192.0.2.1?
Create a Redirect Rule in the same way as above.
So, with the hostname condition of iulianonofrei.io instead of www.example.com, and with the expression concat("https://iulianonofrei.com", http.request.uri.path) instead of concat("https://example.com", http.request.uri.path)?
I just noticed that, for another domain, I have a CNAME DNS record from www to revolter.github.io.
So maybe the fact that these domains point to content hosted on GitHub causes all these issues, and I should use CNAME instead of AAAA & redirect rules?
It’s up to you, but if you CNAME a hostname to a host make sure that each hostname is configured as a custom domain on that service.
Usually for SEO and consistent analytics, people want a single hostname to be active (say www.example.com) and everything else to redirect to it (example.com, example.org, www.example.org, etc).