[請益] lighttpd rewrite 轉換問題

看板FreeBSD作者 (瘋人院院長)時間17年前 (2008/04/09 00:28), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
目前主要的 web server 是採用 lighttpd 這幾天一直嘗試安裝 dekiwiki 目前就到最後一步卡關了 問題在於 rewrite 的規則 官網只有提供 apache22 的寫法 之前已經在 apache22 上有成功運作 現在換到 lighttpd 就在 rewrite 的規則轉不過來 apache22 的寫法 RewriteEngine On #下面的一直改不出來 RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^/$ /index.php?title= [L,NE] RewriteCond %{REQUEST_URI} ^/@gui/[^.]+$ RewriteRule ^/@gui/(.*)$ /proxy.php?path=$1 [L,QSA,NE] #下面的都改好可運作 RewriteCond %{REQUEST_URI} !^/(@api|editor|skins|config|@gui)/ RewriteCond %{REQUEST_URI} !^/index\.php RewriteCond %{REQUEST_URI} !^/favicon\.ico$ RewriteCond %{REQUEST_URI} !^/robots\.txt$ RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE] 我自己嘗試改寫的 url.rewrite-once = ( #下面四行就是卡住的地方 "^/$" => "/index.php?title=", #"^/@gui/[^.]+$" => "$0", "^/@gui/[^.]+$" => "/proxy.php?path=$1", #下面改好可以動 "^/(@api|editor|skins|config|@gui)/(.*)" => "$0", "^/index\.php(.*)" => "$0", "^/favicon\.ico" => "$0", "^/robots\.txt" => "$0", "^/Special:Search\?search=(.*)" => "/index.php?search=$1", "^/(.*)" => "/index.php?title=$1" ) 現在的問題在於 RewriteCond %{REQUEST_URI} ^/@gui/[^.]+$ 不知道怎樣轉成 lighttpd 的寫法 另外 apache22 前四行改起來也怪怪的 算是可以動 就差最後一步 還請大大指教 謝謝 -- my blog http://blog.cheyingwu.tw/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.62.138.17 ※ 編輯: plokijuh 來自: 61.62.138.17 (04/09 00:30) ※ 編輯: plokijuh 來自: 61.62.138.17 (04/09 00:39)
文章代碼(AID): #17-vqsjG (FreeBSD)
文章代碼(AID): #17-vqsjG (FreeBSD)