Www and non-WWW version pointing to replit

Hey all.

how can i point both www and non-www version to replit from other web hosting server?

Yes, you can add both TLD (top-level domain) example.com and www.example.com to custom domains in Replit, and add appropriate A and TXT records to your domain registrar to ensure both will resolve properly (with SSL) to your Replit app.

Let me know if you need help getting it done.

thanks realfunnyeric.

since i am using non-www version. how can i redirect www version to non-www version. is there any options in replit?

Where is your domain registered?

hostgator

  1. Log into the HostGator Customer Portal
  2. Go to Domains and click on your domain
  3. Go to DNS Management or Zone Editor
  4. Delete any existing www CNAME or A record
  5. Add a URL Redirect record for the www host pointing to https://yourdomain.com as a permanent 301

Also FWIW, I think that’s the right thing to do, as ‘www’ is a bit old-school and completely unnecessary. I cringe every time I see it in marketing materials!

Thanks realfunnyeric.

1 Like