openwrt 下lighttpd Typecho URL重定向规则
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | url.rewrite = ( "^/(.*)\.htlighttpdml$" => "/index.php/$1\.html", "^/archives/(.*)" => "/index.php/archives/$1", "^/category/(.*)" => "/index.php/category/$1", "^/([0-9]+)/([0-9]+)/$" => "/index.php/$1/$2/", "^/tag/(.*)/$" => "/index.php/tag/$1", "^/search/(.*)/$" => "/index.php/search/$1", "^/(.*)page/(.*)" => "/index.php/$1page/$2", "^/(feed.*)" => "/index.php/$1", "^/action/(.*)" => "/index.php/action/$1", "^/(.*)/comment" => "/index.php/$1/comment", "^/sitemap.xml" => "/sitemap.xml", "^/favicon.ico" => "/favicon.ico" ) |
1 2 3 4 5 | server.modules = ( "mod_rewrite", "mod_fastcgi", "mod_evasive" ) |