jxyblog

jxyblog

email

The usable lighttpd pseudo-static found online is really because so few people use lighttpd.

I searched online for a long time, but I couldn't write the specific rules, and I don't understand the English documentation.
Below, I will post the rules; currently, I am using the simplest one.
I also found the WIKI for lighttpd's Mod_rewrite, but I can't understand it in English, so I'll keep it for reference.
Link: 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"
)
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.