I've been using Firebase for a number of years to host a very simple static HTML site. I recently removed a page and would like to create a 301 redirect to an alternative page hosted on the same domain/account.
I did some research and found that firebase doens't support a conventional .htaccess file and to achieve redirects you need to edit the project's firebase.json file. I've amended my file to the below but nothing happens when I visit the old URL (I just get a 404 error). Can anyone spot anything I'm doing wrong?
{
"hosting": {
"site": "project-name-goes-here",
"public": "public",
"ignore": ["..."],
"redirects": [
{
"source": "/ssl-certificates.html",
"destination": "/web-hosting.html",
"type": 301
}
]
}
}