Firebase Hosting Domain Remapping

I have a custom domain with Firebase Hosting (e.g. myapp.domain.com).

How can I redirect (or disable) the default URL of the Firebase host (for example, myapp.firebaseapp.com) so that the application is accessible only from the user domain?

+4
source share
1 answer

You cannot disable the subdomain. Your application will always be available on https://myapp.firebaseapp.comany custom domain that you have configured.

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

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

Learn more about this in Indicate your canonical on the Google Central Webmaster Blog.

+5

Source: https://habr.com/ru/post/1619413/


All Articles