I have added my domain to the GitLab pages settings and verified it.
The page works fine when accessing it via example.com
, however www.example.com
returns a 401 error from GitLab (You don't have permission to access the resource.
).
My DNS entries:
A record @ 35.185.44.232
(The GitLab Server)CNAME record www username.gitlab.io.
TXT record _gitlab-pages-verification-code [verification code]
to verify domain to GitLabURL Redirect Record www https://example.com Unmasked
(This entry does not seem to be working, even after waiting multiple days.)
I'm using Namecheap as domain name provider. The hosted web page is a Flutter web app in one case, and a static website created with Jekyll in the other.
I have tried re-adding the domain to GitLab pages, but to no avail. The repository is set to public.
CNAME
record and your "Redirect" (pseudo-)record conflict, you'll want to remove one of them. Remove theCNAME
if you want your registrar's server to handle the redirect, remove the "Redirect" record if you want GitLab Pages to handle the redirect.