5 ms·
It shows up as a proper 301 when I load up the URL in Firefox. The question is, how?
by cptskippy 5y ago
It shows up as a proper 301 when I load up the URL in Firefox. The question is, how?
- qbasic_forever 5y agoWow, nice yeah I'd love to know how github supports configuring a URL to 301 redirect!
- MD87 5y agoOne of the Jekyll plugins that GH Pages supports[0] is jekyll-redirect-from, which lets you put a `redirect_to` entry in a page's front matter. [0]: https://pages.github.com/versions/ https://pages.github.com/versions/
- simonw 5y agoI found this example of another repo that is using the same trick: https://github.com/kotokaze/kotokaze.github.io https://github.com/kotokaze/kotokaze.github.io ~ % curl -i 'https://kotokaze.github.io/' HTTP/2 301 server: GitHub.com content-type: text/html permissions-policy: interest-cohort=() location: http://github.kotokaze.net/
- nobodywasishere 5y agoFor the latter, `<meta http-equiv="refresh" content="0; URL=https://blog.eowyn.net/vhdlref https://blog.eowyn.net/vhdlref" />` in the `<head>`