Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirect to Firebase Hosting custom domain

I have setup a custom domain with Firebase Hosting (eg. myapp.domain.com).

How can one redirect (or turn off) the default Firebase Hosting URL (eg. myapp.firebaseapp.com) so that the app is only accessible from the custom domain?

like image 275
bostondv Avatar asked Dec 10 '15 21:12

bostondv


People also ask

How do I change my firebase hosting URL?

Scroll down in 'Manage Site' and create a new site, then deploy there. You can't change your domain, but you can change the host! You can make as many sites as you want.


1 Answers

You cannot turn off the subdomain. Your app will always be available on https://myapp.firebaseapp.com and whatever custom domain you've set up.

To redirect people, you can add a canonical link to your HTML:

<link rel="canonical" href="http://myapp.domain.com/" />

Read more about that in Specify your canonical on the Google Webmaster Central Blog.

like image 55
Frank van Puffelen Avatar answered Sep 20 '22 04:09

Frank van Puffelen