1
0
Fork 0
forked from wezm/wezm.net

Add more rewrite rules to cover indexed pages

This commit is contained in:
Wesley Moore 2010-07-10 14:14:55 +10:00
parent b46ff7563d
commit fb07aa2e85

View file

@ -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;