Post AW4NT2i5vbgFqsYRCS by ross@social.rossabaker.com
(DIR) More posts by ross@social.rossabaker.com
(DIR) Post #AW4NT2i5vbgFqsYRCS by ross@social.rossabaker.com
2023-05-27T04:11:40Z
0 likes, 0 repeats
Clean URLs for a static website: yea or nay?
(DIR) Post #AW4NT3Vix5NaKnm4Ya by alexelcu@social.alexn.org
2023-05-27T04:51:41Z
0 likes, 0 repeats
@ross The third option:/about/This plays well with static content generation or with Cloudflare's Pages.
(DIR) Post #AW4NiXPC5QZTOY6Pey by ross@social.rossabaker.com
2023-05-27T04:54:30Z
0 likes, 0 repeats
@alexelcu Yeah, I should have put the trailing slash in the poll. I'm turning `website.org` into `website/index.html` right now, and Netlify's CDN makes the trailing slash optional, whether I like it or not.
(DIR) Post #AW4SCAXA5PbkxrDKLI by alexelcu@social.alexn.org
2023-05-27T05:44:44Z
0 likes, 0 repeats
@ross I just checked on my website, as I have a mirror hosted on Netlify, and if you don't give it a trailing slash, it does a redirect:mirror.alexn.org/aboutI searched, and the setting is called “Pretty URLs”. See the section on trailing slashes here:https://docs.netlify.com/routing/redirects/redirect-options/#trailing-slash
(DIR) Post #AW4SbzR9xz5q4ridlI by alexelcu@social.alexn.org
2023-05-27T05:49:24Z
0 likes, 0 repeats
@ross I used to do .html, but eventually folders won because they seem to have wider support. E.g., Cloudflare Pages does a weird thing and just redirects your .html to their “extension-less” counterparts.https://developers.cloudflare.com/pages/platform/serving-pages/I'm currently hosting on my own VPS, but thinking that I may need free hosting in the future, so 🤷♂️
(DIR) Post #AW57tKwXMBTdoxmmKu by ross@social.rossabaker.com
2023-05-27T13:31:55Z
0 likes, 0 repeats
@alexelcu There's a REST argument as well: if I were on my own nginx, I could serve alternate formats through content negotiation. There are eight billion people in the world, and two or three of them might want my Emacs config as a PDF!