Skip to main content


Baby steps towards launch of my new web site. And new things to learn for each one of them:

When I put the static files from my #11ty build online, on my web server, individual post pages aren't rendered in the browser, but instead downloaded as text files. When I use 11ty's local dev server functionality, all works as expected.

I could need some help debugging what's going on here.

The files doesn't have any file suffix. Should .html be added by 11ty?

#11ty
in reply to Anders Thoresson

this is in our common pitfalls guide! https://www.11ty.dev/docs/pitfalls/ “The browser is trying to download my files instead of displaying them.”

cc @jamesdoc

in reply to Eleventy 🎈 v3.0.0-alpha.10

@jamesdoc and of course I see https://mas.to/@jamesdoc/112305483939161467 right after posting!

Thanks James!


https://www.11ty.dev/docs/permalinks/

It might be worth checking what's going on there– make sure that you have that trailing slash in that config file…


in reply to Anders Thoresson

Do you have something public we can have a look at? Eg code in GitHub and the URL where things are going wrong?
in reply to James Doc

@jamesdoc I suspected that would help. Unfortunately, not yet. Thanks for offering your assistance though! :)
in reply to Anders Thoresson

No worries – on your local machine are your files being created with .html extensions? Check in in the _site/ folder to verify.
in reply to James Doc

@jamesdoc So I guess it's about configuring Apache to server extensionless files as html.
in reply to Anders Thoresson

Are you doing anything with the `permalink` key in a file's front matter?
This entry was edited (3 weeks ago)
in reply to Anders Thoresson

https://www.11ty.dev/docs/permalinks/

It might be worth checking what's going on there– make sure that you have that trailing slash in that config file…