forked from wezm/wezm.net
Add more rewrite rules to cover indexed pages
This commit is contained in:
parent
b46ff7563d
commit
fb07aa2e85
1 changed files with 21 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue