diff --git a/etc/nginx.conf b/etc/nginx.conf index f1c7888..92b72d4 100644 --- a/etc/nginx.conf +++ b/etc/nginx.conf @@ -99,7 +99,27 @@ http { # Rewrites rewrite ^/qr$ / permanent; - # Rewite old links + # Date based entries + rewrite "^/(?:\d+/)+(?:page/\d+/)?$" / permanent; + + rewrite ^/archives/$ /articles/ permanent; + + # Categories + rewrite ^/category/(personal|entertainment|miscellaneous|out-and-about)/ /personal/articles/ permanent; + rewrite ^/category/(technical|apple|code|development|internet|linux|programming|projects|software|tips|unix|windows)/ /technical/articles/ permanent; + rewrite ^/category/ /articles/ permanent; + + # Home page, pagination + rewrite ^/page/\d+/ / permanent; + + # Tags + rewrite ^/tag/ /articles/ permanent; + + # Images + #http://www.wezm.net/wp-content/uploads/wezm.net/2009/08/MG_7215.jpg + rewrite "^/wp-content/uploads/(?:wezm.net/)?(\d{4}/\d{2}/.*)$" /images/$1 permanent; + + # Rewite old permalinks rewrite ^/2008/02/seeking-app-ideas/$ /technical/2008/02/seeking-app-ideas/ permanent; rewrite ^/2008/03/windows-silverlight-installation-experience/$ /technical/2008/03/windows-silverlight-installation-experience/ permanent; rewrite ^/2008/03/webkit-for-keynote/$ /technical/2008/03/webkit-for-keynote/ permanent;