Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make a custom subdomain on Firebase?

I have purchased a domain ("www.mydomain.com"). How do I make a subdomain on Firebase ("sub.mydomain.com"), if I am using Firebase hosting?

like image 640
Doug Liu Avatar asked May 10 '15 04:05

Doug Liu


People also ask

What is a custom subdomain?

A subdomain is a second website that has its own unique content, but the same root domain. For example, if you already have a website at "popcorn.com", you could create a subdomain (i.e. school.popcorn.com) that points to your Teachable school.


1 Answers

Update

You can now add multiple domains to a single Firebase Hosting site. Domains can either serve site content or redirect to another domain (editable at any time). In addition, you can now use subdomains of the same registered domain on different projects, such as example.com on one project and blog.example.com on another. Visit your hosting admin page to configure them.

Original answer

If you point multiple subdomains of mydomain.com to Firebase Hosting, it will redirect others to the one you chose when specifying your custom domain. If you're looking to simply serve content from one subdomain, all you need do is specify that one in the custom domain field on you Hosting tab and point your DNS for that subdomain to Firebase Hosting, following the instructions provided.

If, however, you're looking to serve different content on different subdomains, that's not currently possible, though this is a highly requested feature that we're considering implementing

like image 155
Chris Raynor Avatar answered Oct 10 '22 09:10

Chris Raynor