简单版的:
- url.rewrite-if-not-file = (
- "^/(admin|usr)/(.*)" => "/$1/$2",
- "^/(.*)$" => "/index.php/$1"
- )
复杂版的:
- url.rewrite-if-not-file = (
- "^/(.*).htm$" => "/index.php/$1.htm",
- "^/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
- )
转载自:http://www.sun3.cn/361.htm