This website used to be hosted on
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.
.htaccessdoes not seem to work on
- or I did not manage to get it to work
- and was too lazy to ask support
my solution looks like this:
ErrorDocument 404 /~muejonat/index.php
<?php preg_match('#/~muejonat/(.*)#', $_SERVER[REQUEST_URI], $matches); header('Location: '.'https://jo-m.ch/'.$matches, true, 301); ?>