r/statichosting • • 8h ago

Why has nobody standardized redirect rules across static hosts???

0 Upvotes

I've moved sites between hosts enough times now that rewriting the redirects file has become routinary. Same rules, slightly different syntax, a different way of handling splats and status codes every time.

I keep wondering why it never converged on anything. Is it just that every host wanted to ship features first and nobody had a reason to care about compatibility, or is there some technical reason or motivation I'm not seeing? Will we ever get a shared format, or will it stay like this forever?


r/statichosting • • 1d ago

What are you hosting that gets surprisingly high traffic?

2 Upvotes

the thing i like about static hosting is how ridiculously good it scales for such simple projects. now im curious what kind of site people here are running that gets more traffic than expected. do you do personal blogs, side projects, open-source project pages or just something random? really interested on hearing what youre hosting, how much traffic it gets and i youve ever run into limitations with a static setup.


r/statichosting • • 2d ago

At what point does a static client site need a backend?

23 Upvotes

Building a small business site and the client wants visitors to submit photos with quote requests. The pages themselves could stay completely static.I’m considering Supabase for storing the requests and uploads, but I’m wondering how much ongoing maintenance I would take on once the site is handed over.Where do you draw the line between adding a backend and using a hosted form service for this stuff?


r/statichosting • • 2d ago

What will happen if all major hosting platforms disappear?

3 Upvotes

Like would the web still survive if platforms like Vercel, Netlify, GitHub Pages, and other major hosting providers suddenly shut down? Or would developers like move back to self-hosting and rely more on decentralized infrastructure, or build smaller independent hosting solutions? It's interesting to think about how dependent the modern web has become on a handful of platforms.


r/statichosting • • 2d ago

has anyone found a good way to use a strict CSP with static-generated sites?

4 Upvotes

how do you handle Content Security Policy on static sites?

some sites use inline scripts for things like theme switching and UI interactions. using unsafe-inline makes setup easier, but it also weakens the protection CSP is supposed to provide.

nonces can be difficult to manage without a server generating a new response for each request, while hashes need to match the inline scripts in the generated HTML.

has anyone tried automating script hashing during the build process? does it work well, or is it easier to move inline scripts into separate files?


r/statichosting • • 3d ago

How much do you spend on static website hosting?

10 Upvotes

I've been looking into different static hosting options lately, and I'm curious about how much everyone spends monthly or yearly. Besides free plans (since I'm interested if it's worth spending money over), I would love to hear what platforms everyone using and whether the costs are reasonable as your projects grow.


r/statichosting • • 4d ago

what analytics tools do you use for static websites?

5 Upvotes

i’ve been thinking about how much tracking a small website actually needs. google analytics seems like the obvious choice but sometimes it feels like more than what’s necessary for a simple site. do you prefer lightweight privacy-friendly analytics tools or do you stick with the more established platforms?


r/statichosting • • 4d ago

Classic sites to check out?

6 Upvotes

I have been feeling a bit nostalgic lately, so I wanted to revisit old websites. I miss the charm of simple static sites, personal homepages, little experiments, and all those quirky corners of the internet. Anyone have old static sites worth checking out? Would love to browse some and take a little trip down memory lane.


r/statichosting • • 4d ago

how do you check accessibility on small client websites

6 Upvotes

ive started paying more attention to things like keyboard, image alt text and focus indicators when building websites. most of these arent particularly difficult to address while coding but i dont always know how thoroughly i should be testing before handing a site over. i know tools like lighthouse and axe can catch some issues but they dont seem to cover everything. for those building smaller static websites, what does your accessibility testing look like? do you do manual checks as well or is an automated audit where you normally stop?


r/statichosting • • 5d ago

Static sites can still leak secrets during the build

2 Upvotes

I always thought static hosting meant there wasn’t much to worry about when it came to secrets. Then it clicked that the build itself can still use private cms tokens, api keys, and environment variables. If something is configured badly, those can end up inside generated js or other public files.

So now I think of the final build folder as something that should be checked too, not just trusted because ci made it. A quick secret scan before deploy seems like a pretty easy habit to add.


r/statichosting • • 7d ago

How many deploys back do you keep old hashed assets on a static host?

3 Upvotes

I carry the last few builds' css and js forward into each new deploy so cached html never 404s on a file that's gone. It works, but the output keeps growing and I never picked a number on purpose. Right now I keep the last five, which has the assets folder sitting around 40mb on a site that's maybe 6mb of actual content.

What are you running, by deploy count or by age? And has anyone actually caught this in logs, or is the html window short enough that it never really bites?


r/statichosting • • 8d ago

Are custom domains and DNS management still a pain for anyone else?

10 Upvotes

is it just me or you also trip up the dns and custom domain configuration? i mean, setting up a new site is the easy part but this is different overall. between nameservers, DNS propagation, SSL validation, redirects, and provider-specific requirements, it sometimes feels like there are more moving pieces than there should be. really curious how everyone is handling this. have u found a registrar or dns provider combination that makes the process less hassle or is dealing with its quirks just something weve all accepted at this point?

would really appreciate to hear what's worked well for others


r/statichosting • • 9d ago

how do you actually verify redirect rules before migrating a site?

3 Upvotes

when moving an older site to static hosting, redirect rules seem easy to underestimate.

it's not just redirecting one old homepage url. there might be hundreds of old slugs, trailing-slash variations, query parameters, and urls that already redirect somewhere else. a migration can look fine when you manually test five pages but still leave a bunch of old links broken.

does anyone have a good way to validate an entire redirect table before switching the domain over?

i'm thinking of testing a list of old urls against the new deployment and checking for unexpected 404s, redirect chains, and loops. do you automate that as part of ci, or is there a better approach for catching these problems before launch?


r/statichosting • • 9d ago

What are my options for free simple web analytics?

11 Upvotes

Hello. I have some simple sites that are using Hugo in conjunction with a Github repository, hosted on Cloudflare Pages. I'm looking for a simple, more reliable and lightweight analytics solution than Cloudflare Web Analytics.

Cloudflare Web Analytics is server side so it picks up every load, even from bots. I'm wondering if there's a better option that'll also allow me to filter myself out. I don't want to use Google Analytics, something simpler and more light weight.

I found Plausible which I can see is free if you self host, but I'm not sure if that's possible with my current setup?


r/statichosting • • 10d ago

J'ai créé mon site sans CMS : un petit générateur Python, un éditeur local que j'utilise depuis mon iPad via un VPN, et une étape de publication FTP sécurisée.

2 Upvotes

Contexte : Je suis développeur indépendant (France) et je crée des petits jeux de logique pour Android. J’avais besoin d’un site web pour les présenter. Je ne voulais ni WordPress, ni base de données, ni chaîne de compilation à gérer. J’ai donc créé la solution la plus simple possible, avec Claude Code au développement, sous ma direction.

L’approche

  • Le site est entièrement statique. Un simple script Python (bibliothèque standard uniquement, sans dépendances) le génère à partir de fichiers de données bruts : un fichier JSON par jeu, des fichiers texte pour les pages, des modèles HTML, une feuille de style et quelques lignes de JavaScript.
  • Tout est versionné avec Git, et le dossier généré n’est jamais modifié manuellement.
  • Une version française/anglaise a été ajoutée de la même manière : le générateur crée les deux versions à partir des mêmes données, les textes anglais sont dans un dossier séparé, et il existe un sélecteur de langue (pas de redirection automatique, volontairement). Comment j'écris et publie
  • Écriture : Je modifie les textes, les pages de jeu et les paramètres dans un petit éditeur local qui s'exécute dans le navigateur. Il s'agit simplement d'un formulaire superposé aux fichiers de données. Claude Code gère le code, les traductions et les vérifications ; je décide, je lis et je valide.
  • Publication : Je clique sur « Générer », je regarde l'aperçu, puis je clique sur « Publier ». Le script de publication envoie uniquement les fichiers modifiés via FTPS vers un hébergement mutualisé, ne supprime jamais rien à distance et refuse de s'exécuter s'il détecte une ancienne installation WordPress dans le dossier cible.
  • Les images de partage (1200×630) et les balises sociales/SEO (Open Graph, canonique, hreflang, JSON-LD) sont également générées.

Où cela s'exécute et comment j'y accède

  • L'éditeur et mes autres outils fonctionnent sur un Mac mini à la maison et se lancent automatiquement. Je les consulte depuis mon iPad via un VPN privé (Tailscale, qui utilise WireGuard en interne), donc rien n'est exposé sur Internet. Le site public se limite à la page statique hébergée.

Mesure sans suivi

Un compteur PHP d'une soixantaine de lignes sur le serveur enregistre uniquement les totaux mensuels : pages vues, utilisation d'un mini-jeu et l'attribut ?src=" de chaque lien publié, ce qui me permet d'identifier le canal d'origine des visiteurs. Aucun cookie, aucune adresse IP, aucun identifiant visiteur.

Ce que je ferais différemment : j'aurais prévu la version anglaise dès le départ et j'aurais ajouté des vérifications automatisées sur les pages générées plus tôt. Voici le résultat, avec un mini-jeu de mélange de couleurs sur la page d'accueil : https://dpdmb-creation.fr/en/?src=r-selfhosted

Je suis ravi de répondre à vos questions, quel que soit le point abordé, ou de savoir comment vous configureriez le VPN et l'éditeur.


r/statichosting • • 10d ago

How often do you update dependencies in your static site projects?

4 Upvotes

i know keeping packages updated is important, but updating everything too often can sometimes introduce new problems. do you have a regular schedule for dependency updates, or do you usually wait until there’s a security fix or a specific reason to update something?


r/statichosting • • 10d ago

do small static websites really need preview deployments

9 Upvotes

for smaller client projects, i usually make changes locally, check them then push everything to the live site. ive noticed that platforms like netlify and cloudflare pages offer preview deployments, which let you review canges thru separate url before they reach production. this seems useful esp. when a client needs to check content or approve layout changes. but for a 5-10 page website, im not sure how necessary it is to have a separate preview or staging workflow.

for those working on smaller static sites, do you use preview deployments regularly or is testing locally before pushing usually enough? do you find that clients use preview links to review changes or does it just add another step to the process


r/statichosting • • 12d ago

Tool, or technique, to compare local and server versions of a massive static site?

Thumbnail reddit.com
2 Upvotes

r/statichosting • • 14d ago

Hugo built pages for every tag; WTD?

2 Upvotes

I've got a personal blog on hugo with about two hundred posts, and I recently looked at the sitemap and realized how many pages I didn't write. Hugo builds a page for every single tag, and since I've been pretty loose about tagging over the years, there are tons of tags that only have one post, so the site has hundreds of tag pages that each list one link and nothing else.

It isn't breaking anything as far as I can tell, but it bugs me. They show up in search console as discovered but not indexed, which I assume means google doesn't think they're worth much either, and they make the sitemap look way bigger than the real site.

I can see a few ways to deal with it. I could clean up the tags by hand and merge the one offs into broader ones, which is probably the right answer but sounds tedious (which I may or may not have time for right now). I could turn off tag pages completely and keep the tags as plain labels. Or I could leave them in and add a noindex to any tag page with fewer than a few posts, though I'm not sure how to do that cleanly in the templates without writing a bunch of conditional logic.

Has anyone dealt with this in hugo? What did you do?
TYIA!


r/statichosting • • 15d ago

Site rebuilding during a Google core update

Thumbnail reddit.com
1 Upvotes

r/statichosting • • 15d ago

do you keep large downloadable assets in the same repository as the site?

5 Upvotes

hey guys!!

for websites that offer pdfs, demo zips, images, or other downloadable files, where do you usually store them? do you keep everything in the same website repository or use a separate storage service?

keeping everything in one place makes things easier to manage, but large files can make the repository bigger and slower to work with. using separate storage can help, but it also means having another thing to manage.

how do you handle this when a website starts having more downloadable files?

also, do you use different urls when updating files, or do you keep the same url and just replace the file? keeping the same url seems easier, but it might cause caching problems when the file gets updated.

thank you!


r/statichosting • • 15d ago

A static site handoff needs an owner for the services behind its buttons

2 Upvotes

Disclosure: I work on Dashform and Yoya, in forms and scheduling. This is a handoff checklist for client websites, not a recommendation to choose either product.

A static site can be easy to deploy while its contact form or booking button depends on an account nobody remembers owning. I’d include a small service handoff sheet alongside the repository.

For each visitor action, record:

• The public page and the exact button or form to test.

• The external service involved and the account owner.

• Who receives the submission or booking, and who can change that destination.

• Which client person handles renewal or plan-limit notices.

• What a visitor should do if that service is unavailable.

No passwords on the sheet—just where authorized people manage access.

Then do one fictional end-to-end test with the client present. Start on the public site, submit an unmistakably labeled test enquiry or make a test booking, and have the client locate the resulting record themselves. A developer seeing it in their own inbox does not prove the client can operate the site after handoff.

I’d also ask the client to make one ordinary change, such as updating the notification recipient or blocking an unavailable date, in the appropriate service. Record which parts they can do independently and which still require the developer. If the answer is ‘message me’, that is an ongoing support arrangement worth making explicit.

This is separate from backing up the site source. A repository can preserve the page and its link without documenting who runs the service at the other end.

What do you normally hand over for these dependencies: a short runbook, a screen recording, or an ongoing maintenance agreement? I’m particularly interested in what a small-business owner can actually use six months later.


r/statichosting • • 16d ago

how do you decide which screen sizes are worth testing?

5 Upvotes

after my last post about cross-browser testing, a few comments brought up something i hadnt really considered: display scaling and browser zoom can also affect how a website looks, even when the css is working as expected. i usually test responsive layouts at common mobile, tablet, and desktop widths, but i rarely check what happens when someone uses 125% or 150% display scaling on windows, or has their browser zoom set differently.

i know these arent exactly the same thing but i both can change the available viewport space and affect how text and elements fit together.

for smaller client websites, do you actually test different scaling and zoom settings, or is checking a few viewport widths usually enough? have you ever run into a layout issue that only appeared when someone changed their display or browser settings?


r/statichosting • • 17d ago

What appointment booking system do you use for your client sites?

11 Upvotes

I build static websites for small businesses and am looking for an appointment booking system I can recommend and set up for clients.

Ideally something free or low-cost that’s easy to embed or link to, and simple enough for clients to use.


r/statichosting • • 17d ago

Is keeping everything in Git enough for backing up a static website?

3 Upvotes

since most static site projects already use Git, it seems like a good way to keep track of both code and content. but I’m wondering if relying on a remote repository is enough in the long run.

do you keep separate backups of your content and assets, or is your Git repository usually all you need?