-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to fix the issue of link without / #411
Comments
This is something you have to setup with your web server. What happens when you visit Almost every web server does this by default which is why Gatsby outputs files at index.html. If you want to remove the trailing slash, there are ways but it'll take special configuration. Here's a blog post I found for Nginx. No guarantee on its quality though as not an Nginx expert http://cobwwweb.com/remove-html-extension-and-trailing-slash-in-nginx-config |
I begin with the doc site starter. However
http://localhost:8000/examples
goes to 404 page whilehttp://localhost:8001/examples/
works. Is there any way to fix this? I want those without trailing slash will redirect to the one with trailing slash.The text was updated successfully, but these errors were encountered: