This website has been moved!

This website used to be hosted on https://people.ee.ethz.ch/~muejonat/.

My studies at ETH will end soon and I will consequently lose the home directory web hosting there. To not lose the audience (and Google ranking), I decided to act early enough (1 year) and redirect everything to the new address https://jo-m.ch/ via 301.

Redirect without mod_rewrite

Because

  • mod_rewrite via .htaccess does not seem to work on people.ee.ethz.ch
  • or I did not manage to get it to work
  • and was too lazy to ask support

my solution looks like this:

.htaccess

ErrorDocument 404 /~muejonat/index.php

index.php

<?php
    preg_match('#/~muejonat/(.*)#', $_SERVER[REQUEST_URI], $matches);
    header('Location: '.'https://jo-m.ch/'.$matches[1], true, 301);
?>

Farewell, http://people.ee.ethz.ch/!