Home > Software engineering >  Why We can't Access Firebase hosted site with www
Why We can't Access Firebase hosted site with www

Time:01-04

Why i can't access the firebase hosted site with the www prefix if I remove www From there it works.

Check this demo site :--

https://www.fir-demo-project.web.app : Not working ❎

https://fir-demo-project.web.app : Working ✅

CodePudding user response:

Firebase Hosting simply does not provide a free www address for your site. According to the documentation, here is what you get for free:

The Firebase-provisioned subdomains for your default Hosting site and any additional Hosting sites:

  • SITE_ID.web.app (like PROJECT_ID.web.app)
  • SITE_ID.firebaseapp.com (like PROJECT_ID.firebaseapp.com)

If you want to customize the domain for your site, you need to register a domain and configure Firebase Hosting to use that. You can then control the domain any way you like.

CodePudding user response:

To redirect www.fir-demo-project.web.app to fir-demo-project.web.app then you need to add CNAME record.

To redirect fir-demo-project.web.app to www.fir-demo-project.web.app, you need to add A record.

Kindly check your DNS entries for the domain

  • Related