Redirect to Firebase Hosting custom domain

前端 未结 3 1380
南笙
南笙 2020-12-03 05:10

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.firebaseap

3条回答
  •  暖寄归人
    2020-12-03 06:05

    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:

    
    

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

提交回复
热议问题