I'm having trouble redirecting www to non-www links using Namecheap. I added a URL Redirect Record with a host of www and a value of
http://example.com which works fine for the main (and mostly only page).
The problem is that I'm setting up SSL using Let's Encrypt and it needs to verify using the file served at
www.example.com/.well-known/acme-challenge/whatever. But the way the redirect rule currently works is that I have it redirects every URL to
http://example.com (the homepage) instead of just removing www from the current URL. This obviously breaks the Let's Encrypt setup since it can't verify that page using www since it redirects to the homepage instead.
If it matters I'm hosting this site on GitLab Pages so my other rule is an
A Record with host
@ and value
220.127.116.11. But seeing as my non-www URLs work fine I don't think this rule is causing an issue. Any ideas?