Fixing 404's...

in #updates6 days ago



so @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

Sort:  

Rishi- Finding bugs since I was born!

huzzah!!!