The views and thoughts below are purely my own, and are not meant to represent my employers, minions, affiliates, or superhero alter egos.


This page was edited 2018-04-04

Hello, GitHub Pages

I have started using GitHub pages to host my personal homepage. It seems to work quite well, and Jekyll templating is fairly smooth.

Redirecting Correctly

It actually took a bit of looking to learn what is considered the best practice for redirecting using HTML. Apparently the <meta> tag can sometimes be ignored, and since javascript may be disabled, there is no sure-fire way of doing an automatic redirect. The next best solution is to try everything you can, and provide an explicit link, just in case.

My old site at http://people.cs.uchicago.edu/~sirosen/ now serves up the following HTML:

<html lang="en-US">
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="1;url=http://sirosen.github.io/">
        <script type="text/javascript">
            window.location.href = "http://sirosen.github.io/"
        <title>Page Redirection</title>
        If you are not redirected automatically, follow the <a href='http://sirosen.github.io/'>link to sirosen.github.io</a>

When browsers ignore <meta>, they fail over to the javascript rewrite to window.location. This is still very responsive because the script is so small, and loading the target page through this redirect is seamless.

Site tested on Firefox and Chrome.