-
Notifications
You must be signed in to change notification settings - Fork 186
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
Need to remove .html from files? #297
Comments
You should not have to create redirect rules in this kind of a case. Do your local files end with the .html suffix? If yes, then try removing the suffix. |
Hmm I'm brand new to Jekyll so this could contribute to my issues... I have posts.md which contains standard Jekyll stuff, I've just tried removing the .html from the permalink but still no deal. posts.md contains the following
posts.md ends up being posts.html in the s3 bucket after building and pushing; |
@peavers change |
Using a trailing slash for the Jekyll permalink will get the URLs to work (by creating an index.html for the page in a subfolder), but the only problem with this is that if you visit the URL without the trailing slash, S3 does a 302 redirect to the trailing slash version. Not ideal, but I'm hoping that with Relevant discussion here: #233 |
Hello,
I can't access anything but the homepage without adding .html to the end of the url. For example
example.com/posts
returns a 404 butexample.com/posts.html
returns the page.I'm using cloudfront but everything (including the creation of the bucket) was handled with S3, and the posts.html file has the correct content-type set, am I just missing something obvious here?
Surely I don't have to create redirect rules in the config for every single page do I?
The text was updated successfully, but these errors were encountered: