sandalwoodsh
sandalwoodsh

Reputation: 235

Cancel Firebase redirect

I redirected my firebase landing page by editing the firebase.json file:

"redirects": [ {
  "source": "/",
  "destination": "https://subdomain.mydomain.com/maintenance/",
  "type": 301
} ]

Now I want to revert back so that when someone enters "https://subdomain.mydomain.com" they're taken to "https://subdomain.mydomain.com/index.html

Upvotes: 1

Views: 324

Answers (1)

sandalwoodsh
sandalwoodsh

Reputation: 235

As I mentioned to Frank, the solution was to remove the redirect code from the file; deploy, and ensure the cache was cleared. If you don't clear your cache you'll be tricked into thinking your firebase.json file isn't working and the re-direct is still being applied...that is not the case! Simply clear your cache after deploying firebase.json without the redirect code and voila, you're back to root index of your site.

Upvotes: 1

Related Questions