Skip to content
← Back to Community
How can I add multiple domains to my repl.it project (html)?
Profile icon
nooby-xviii

Hey Guys! I wanted to know how I can add multiple domains for my repl.it project, it will be appreciated if you can let me know!

Answered by CosmicBear [earned 5 cycles]
View Answer
Voters
Profile icon
nooby-xviii
Comments
hotnewtop
Profile icon
CosmicBear

I don't think you can add more than 1 custom domain. However, your repl already comes with 3 domains. What you can do, is make a separate repl with another domain, and make it a proxy to the original website.

Profile icon
nooby-xviii

@CosmicBear how can I do this?

Profile icon
CosmicBear

@ZacharieRahman I made an example but i think shared proxies are against the rules on repl talk idk so you can look at my repls and find it.

Profile icon
nooby-xviii

@CosmicBear you are a genius!!!

Profile icon
FlappyTheBat

You can't add more than one custom domain, but if you wanted to add another domain, you could just create a CNAME record for your domain pointing towards the custom one to achieve the same effect (I think?)

Example:

www.myexistingdomain.com (already configured as a custom domain for your replit project)

www.mycustomdomain.com -> CNAME record pointing towards www.myexistingdomain.com

Profile icon
nooby-xviii

@FlappyTheBat How Can I Do That? What If I Point Both Of My Domains To The Repl.it cname Given When Linking A Domain?

Profile icon
FlappyTheBat

@ZacharieRahman That might work - try it. If not, you just need to add a CNAME record to the subdomain you want to add to your project (usually www.yourdomain.com), you can do this in the same way you linked your first domain with your repl.it project, but replace the target with your domain you have already linked.

Or just do what @CosmicBear suggested.

Profile icon
nooby-xviii

@FlappyTheBat Unfortunately, it did not work, neither did adding the same repl.it project cname, or changing cname to my custom domain

Profile icon
InvisibleOne

You can only have two that I know of, and that's if you add a custom domain to your repl. You will still be able to access it with the old repl.co URL as well as your custom one