I am using firebase hosting. At first, i used default domains but now i have changed it to custom domain. Now i changing address in google search console for the default domain but i am getting the 301 redirect error. Following is my firebase.json file and the google search console error screenshot.
{
"hosting": {
"public": "root",
"site": "ai-dream",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"redirects": [ {
"source": "ai-dream.web.app",
"destination": "dream-interpreter.online",
"type": 301
},{
"source": "ai-dream.firebaseapp.com",
"destination": "dream-interpreter.online",
"type": 301
} ]
}
}
$ curl --head https://ai-dream.web.app/
->HTTP/2 200
location.replace("https://dream-interpreter.online");
I have no idea how to fix that though, because I've never used firebase.https://
in theirsource
then have a second entry with:path
at the end.