GitHub Pages redirect site for the former SDFIdk GitHub organisation, now renamed to Klimadatastyrelsen.
When a GitHub organisation is renamed, GitHub automatically redirects repository URLs and git remotes to the new organisation — but GitHub Pages URLs are not redirected. This repo restores that behaviour for Pages URLs, so that any old link to https://sdfidk.github.io/<repo>/ is transparently forwarded to https://klimadatastyrelsen.github.io/<repo>/.
This repo is served as a GitHub Pages site at https://sdfidk.github.io/. It uses two mechanisms to catch all incoming requests:
<repo>/index.html — handles direct visits to the root of a repo’s Pages site (e.g. https://sdfidk.github.io/myrepo/).404.html — handles all other paths (e.g. deep links like https://sdfidk.github.io/myrepo/some/page/). GitHub Pages serves this file for any URL that does not match a file in the repo, making it act as a catch-all. Read more about custom 404 pages for GitHub Pages on https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-custom-404-page-for-your-github-pages-site.Both redirect immediately to the equivalent URL under klimadatastyrelsen.github.io, preserving the full path, query string, and URL fragment. If the repo name is not recognised, the visitor is forwarded to the Klimadatastyrelsen organisation page as a fallback.