typecho在lighttpd下兩種僞靜態規則都可以用

 簡單版的:

  1. url.rewrite-if-not-file = (
  2. "^/(admin|usr)/(.*)" => "/$1/$2",
  3. "^/(.*)$" => "/index.php/$1"
  4. )

 

複雜版的:

 

  1. url.rewrite-if-not-file = (
  2. "^/(.*).htm$" => "/index.php/$1.htm",
  3. "^/archives/(.*)" => "/index.php/archives/$1",
  4. "^/category/(.*)" => "/index.php/category/$1",
  5. "^/([0-9]+)/([0-9]+)/$" => "/index.php/$1/$2/",
  6. "^/tag/(.*)/$" => "/index.php/tag/$1",
  7. "^/search/(.*)/$" => "/index.php/search/$1",
  8. "^/(.*)page/(.*)" => "/index.php/$1page/$2",
  9. "^/(feed.*)" => "/index.php/$1",
  10. "^/action/(.*)" => "/index.php/action/$1",
  11. "^/(.*)comment" => "/index.php/$1/comment
  12. )

轉載自:http://www.sun3.cn/361.htm

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章