https:// works but https://www. gives the "Not Secure" message
when accessing my website using www. i get the "Your connection is not private" message and the error is "NET::ERR_CERT_COMMON_NAME_INVALID".
when accessing it without www. it works, can you please help me fix this? thanks
13 Replies
Project ID:
1bd6c05b-ecb7-4336-85ee-debadbb593a0
Project ID:
1bd6c05b-ecb7-4336-85ee-debadbb593a0
did you strictly need www?
Project ID: 1bd6c05b-ecb7-4336-85ee-debadbb593a0
It's better for SEO and UX, if someone accesses and sees an unsecure message they will just drop.
well i didnt mean let that error stand, i more so meant just dont try to use www so they see a less scary message, like domain not resolved. but fair
show me your domains in railway please
this?
Solution
yeah, you need your www subdomain there too
hmm, but if i try to add it, it will ask that i add a CNAME www entry on the domain host, and i already added one for lemmeno.ai and i'm only allowed to add one CNAME www entry.
oh, nvm it actually worked without adding an entry 😄 so just a matter of adding the domain name here, thanks @Brody this worked!
yep exactly, you just need it there so railway can issue the cert for it
thanks alot for your help!
can i ask one more question? how can i set a redirect from www.lemmeno.ai to lemmeno.ai? this is for SEO purpose too
you can either do that at the dns level, or in your apps code
got it, thanks again! marking as solved
no problem!