title: Firebase Hosting – Cannot rewrite default traffic to anything else but index.html
body: <p>I have a couple of firebase hosted sites pointing to the same directory.</p>
  <p>For this particular instance I would like a specific site to use a different default index than the public folder's index.html file.</p>
  <p>I've set the sub-site firebase hosting deployment to something similar to this:</p>
  <pre><code>{
      &quot;target&quot;: &quot;subsite&quot;,
      &quot;public&quot;: &quot;hosting/public_mysite&quot;,
      &quot;headers&quot;: [
        {
          &quot;source&quot;: &quot;/&quot;,
          &quot;headers&quot;: [
            {
              &quot;key&quot;: &quot;Cache-Control&quot;,
              &quot;value&quot;: &quot;no-cache, no-store, must-revalidate&quot;
            }
          ]
        }
      ],
      &quot;ignore&quot;: [
        &quot;firebase.json&quot;,
        &quot;**/node_modules/**&quot;
      ],
      &quot;rewrites&quot;: [
        {
          &quot;source&quot;: &quot;/about&quot;,
          &quot;destination&quot;: &quot;/subsite/about.html&quot;
        },
        {
          &quot;source&quot;: &quot;/reviews&quot;,
          &quot;destination&quot;: &quot;/subsite/reviews.html&quot;
        },
        {
          &quot;source&quot;: &quot;**&quot;,
          &quot;destination&quot;: &quot;/subsite/home.html&quot;
        }
      ]
    }
  </code></pre>
  <p>On the sub-site, the urls /about and /reviews do indeed load the requested alternative pages listed in rewrites section.</p>
  <p>The last rule <code>&quot;source&quot;: &quot;**&quot;</code> seems to be completely ignored and firebase loads the /index.html anyway.</p>
  <p>Why is it not loading <code>/subsite/home.html</code> instead?</p>
  <p>The file is definitely there with the other ones.</p>