Reputation: 1004
Firebase gave .web.app domains for free, so I currently have two domains for my Firebase website:
I want to redirect all traffic from domain A to domain B with firebase.json
. How can I do that?
Upvotes: 1
Views: 335
Reputation: 3680
You could try this...
hosting": {
"redirects": [ {
"source": "mywebsite.firebaseapp.com",
"destination": "mywebsite.web.app",
"type": 301
}
}
Although if that doesn't work then there is probably no way to do this as both domains point to the same IP address and as far as I know, the firebase hosting DNS is not customizable.
Upvotes: 1