firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

Firebase Hosting - Redirect subdomian "x.firebaseapp.com" to "mydomain.com"

Open robertoaikode opened this issue 7 years ago • 2 comments

Hello! I do not know if it's the right place to ask this question ...

How do I redirect the subdomain "proyect-name.firebaseapp.com" to "mydomain.com"?

I am currently viewing the same site in both domains. Is it possible to redirect?

Thank you!

robertoaikode avatar Dec 22 '18 12:12 robertoaikode

The only way to do that is with a bit of javascript on page load to check the domain it is being presented on and redirect if the domain is your firebaseapp.com one. Otherwise, both sites will always work.

FWIW, you can always ask questions like this in the Firebase community Slack channel.

bkendall avatar Jan 02 '19 21:01 bkendall

@bkendall thank you!!!!! :+1: :)

robertoaikode avatar Jan 09 '19 23:01 robertoaikode