รռ0̸̢̲͉̹̙̪̞̮͊̾͛ͅռ avatar

Fixing 404's...

sn0n

Published: 07 Feb 2025 › Updated: 07 Feb 2025Fixing 404's...

Fixing 404's...

so rishi556@rishi556 does links to his posts like:
'@rishi556/building-my-own-network-part-4'
which was broken on https://personal.community until today.

The reason it was broken is because by default, caddy (the webserver used to serve the site) doesn't by default use 404 pages, github pages did. So things worked fine while the site was hosted at github.

The Fix was quite easy, just tossing this in the caddyfile for that domain.

    handle_errors {
        @404 {
            expression {http.error.status_code} == 404
        }
        rewrite @404 /404.html
        file_server
    }

this fixes a lot of issues that made the site a lot less usable for a very long time, no issue though, as noone uses personal.community with any sort of regularity. LoL

Leave Fixing 404's... to:

Written by

Witness | Observer | Thinker | Creator => Words & Pictures, Things & Such

Read more #updates posts


Best Posts From รռ0̸̢̲͉̹̙̪̞̮͊̾͛ͅռ

We have not curated any of sn0n's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From รռ0̸̢̲͉̹̙̪̞̮͊̾͛ͅռ