Forums

Best practices to redirect domain without www. to www. domain

I have website hypothetical.site and when the user types in

https://hypothetical.site I want it to redirect to https://www.hypothetical.site

is there anything on pythonanywhere that can help with this or is using cloudfare's free service the best bet?

Thanks!

We at PythonAnywhere dont offer a free redirect service, if cloudflare do then I'd go with that. The only naked domain redirection services with support for https that I know of you have to. pay for.

https://help.pythonanywhere.com/pages/NakedDomains/

I want to make sure I'm doing this right because I don't want to hit the rate limit on the Let's Encrypt Certificate

I should use nslookup to get the IP address for the http://hypothetical.site domain and put that as a A record with an @ host?

No, nslookup would tell you what the existing IP address is for hypothetical.site, so that wouldn't change anything.

As you're using Cloudflare, I think the answers to this post on their forums will point you in the right direction.

I decided to use a separate webapp on PythonAnywhere for now

OK -- let us know if you have any issues!