Finally i had the impulse to buy my own domain: drakonen.com. I ‘moved’ my blog to this domain which took a simple symlink. Making Nginx do a moved permanently redirect was a bit harder though, and caused quite some frustration. But here it is:
server {
server_name drakonen.digigen.nl;
if ($http_host = 'drakonen.digigen.nl' ) {
rewrite ^(.*) http://drakonen.com$1 permanent;
}
}
This can maybe be optimized a bit, but it generates a 301 status and redirects.
Post a Comment