We're having lots of fun on Discord! Come and join us! 💬
Replit subdomain is the most annoying thing in replit (my option), why not literally replit give you project-based subdomain like this formate project-name.user-name.repl.co. Why they can also provide a subdomain like project-name.repl.co formate. So in this article, I'm going to show you how you can connect a custom domain with your replit project.

How to get a custom domain

There are several ways to get a domain for free as well as paid. now if I talk about the free method, then it's become complicated but if you really want a custom domain for free you can use freenom.com or nic.eu.org.

Now let's talk about the paid method, In the paid method you can buy top-level domains like .com .net .org .xyz, etc. Now where you can buy a custom domain? To buy a custom domain you can use sites like namecheap.com and godaddy.com.

Tips: Make sure to select DNS management when you are going to buy a domain (DNS management is also free with the domain).

 

How to connect a root domain

To connect a domain name to your replit project first of all check the right-hand side corner you will see a pencil icon, click on that icon then write your domain name now if you want to connect the root domain then type the domain name like www.example.com.

Now click on next and then you will get a subdomain with random codes from replit, copy that subdomain and open your domain DNS manager add a CNAME record, now type www in the name and paste the copied subdomain in the value/address field.

After that, make sure to add a redirect, write @ in the name and write your entire domain with www in the value/address field (example: www.oddcoder.xyz).

Now wait up to 48 hours after that open your replit project then click on the pencil icon and again write your domain, now click on next then click on link domain.

How to connect a subdomain

Connecting a subdomain to your replit project is easier than connecting a root domain. First of all click on the pencil icon, which you will see on the top right-hand side corner. Now write your subdomain on there (ex. link.oddcoder.xyz). After that, you will get a subdomain from there and then copy that subdomain.

Now open your domain DNS manager and add a CNAME record, now type the sub name in the name and paste the copied subdomain in the value/address field.

Now wait up to 48 hours after that open your replit project then click on the pencil icon and again write your domain, now click on next then click on link domain.

If you have any problem with connecting a subdomain you can watch the tutorial below.

Conclusion

So this is the simple article to connect/link a custom root domain/subdomain to your replit project. I hope this article might helpful for you, if you have any doubt make sure to ask me in the comment box <3.

Post a Comment

Previous Post Next Post