jxyblog

jxyblog

email

ネットで見つけた使えるlighttpdの擬似静的は、lighttpdを使っている人が少ないからです。

ネットで長い間探しましたが、具体的なルールは私には書けませんし、英語の文書も理解できません。
以下にルールを貼り付けます。現在私が使用しているのは最も簡単なルールです。
また、lighttpd の Mod_rewrite の WIKI も見つけましたが、全て英語で理解できませんので、保管しておきます。
リンク:Mod_rewrite

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
)
url.rewrite = (
"^/(admin|usr)/(.*)" => "/$1/$2",
"^/(.*).html$" => "/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"
)
読み込み中...
文章は、創作者によって署名され、ブロックチェーンに安全に保存されています。