My goal is to serve up a custom default document for each directory.
I can accomplish this with 301 redirects, but that also changes the url, and I’m trying to maintain friendly urls while serving up a different default document
For example, on the linked site, I can browse to index.html
and default.html
explicitly:
https://netlify-redirect-test.netlify.app/index.html
https://netlify-redirect-test.netlify.app/default.html
What I’d like is when browsing to the root…
https://netlify-redirect-test.netlify.app/
… to serve up the contents from default.html
instead of index.html
without changing the URL in the browser
Repo: https://github.com/KyleMit/netlify-redirect-test
Site: https://netlify-redirect-test.netlify.app/