I’m trying to do a domain-level redirect for my pages deployment on GitLab.com.
.gitlab-ci.yml
pages:
script:
- …
- cp gitlab-redirects ./public/_redirects
gitlab-redirects (_redirects):
https://www.mysite.com/* https://mysite.com/:splat 301
When I visit https://www.mysite.com/_redirects
I get:
1 rule
rule 1: valid
In practice however, visiting https://www.mysite.com
doesn’t redirect to https://mysite.com
— the domain remains www
as requested.
Any ideas what I might be doing wrong? Or am I misunderstanding the feature? Thanks!