Reserve namespaces and set up redirects for about.gitlab.com URLs
Hey Infrastructure friends!
The Growth team asked me about adding a redirect for gitlab.com/pricing and I thought this would be the place to start to see what we need to do to set that up. Also adding other gitlab.com redirect suggestions as they come in to this description.
This update serves two purposes.
First, some people link to us without the about
subdomain and these redirects will make sure any links without the subdomain hit the right URL.
Second, reserving these namespaces will prevent abuse. @jstava shared the user https://gitlab.com/sign_up and it's pretty clear this is someone squatting on the URL.
Exact match (no other URLs in this folder)
- gitlab.com/install/
- gitlab.com/demo/
RegEx replace (cover other URLs in this folder)
- gitlab.com/pricing/
- gitlab.com/free-trial/
- gitlab.com/blog/
- gitlab.com/topics/
- gitlab.com/solutions/
- gitlab.com/stages-devops-lifecycle/
- gitlab.com/company/
- gitlab.com/community/
- gitlab.com/devops/
- gitlab.com/devops-tools/
- gitlab.com/events/
- gitlab.com/features/
- gitlab.com/get-help/
- gitlab.com/get-started/
- gitlab.com/handbook/
- gitlab.com/releases/
- gitlab.com/security/
- gitlab.com/webcasts/
- gitlab.com/why/
- gitlab.com/support/
- gitlab.com/contact/
- gitlab.com/sales/
- gitlab.com/jobs/
- gitlab.com/careers/
- gitlab.com/partners/
- gitlab.com/developers/
- gitlab.com/api/
- gitlab.com/about/
- gitlab.com/investors/
- gitlab.com/help/
- gitlab.com/affiliate/
- gitlab.com/resellers/
Ideally, these should redirect without a closing slash to, so /pricing
would redirect to about.gitlab.com/pricing/
for example.
cc @timhey @s_awezec @tipyn @mkarampalas
dsmith- infra notes:
I think we could be able to create a Cloudflare worker with Terraform - maybe adding to / parallel to our DNS Cloudflare Terraform?
https://blog.cloudflare.com/deploy-workers-using-terraform/
We could then have the js for the redirects stored there. Once that is in place, maybe just for pricing, then we could enable the digital marketing dev team to MR to gitlab-com-infrastructure for this worker.