How do I serve the same file under different paths? I have an index.html at my root. I would like it to be served from every path. So /a/b/c/d would serve index.html /c/d/e would serve index.html. /* would serve index.html. The reason I want to do this is because of how react routing works, although that’s not important. What should my caddyfile look like?
I found the below link to be more helpful I was trying to use try_files but I think one of things was I was supposed to be doing index.html instead of /index.html. /index.html doesn’t even make much sense. I also omitted the root. Since the location of the my index file was the same as my caddyfile.
Final Caddy File: