I’m trying to deploy a static site built with parcel.js that has a bunch of subpages with my dist folder looking like this:
📄 index.html 📁 about 📄 index.html
example.com/about/ works but
example.com/about (without trailing slash) returns a 404.
Is there any way to make paths without trailing slashes work in static sites since I have to support an existing url structure?
Vercel for example has configuration options for these settings.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $200 of credit to try our products over 60 days!
I don’t think that this is possible out of the box with static HTML sites unless you are using a library like React for example.
The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.
Hope that helps!