当前位置: > Linux服务器 > Lighttpd >

Lighttpd wordpress Phpwind Discuz 7 Discuz!X

时间:2014-05-26 00:06来源:linux.it.net.cn 作者:IT网
Apache的伪静态规则不需要我们操心,因为会自动生成,但Lighttpd则需要自己编写了,下面收集了wordpress Phpwind Discuz 7 Discuz!X ecshop几种常用程序的Lighttpd伪静态规则。

WordPress Lighttpd伪静态规则
1.url.rewrite = (
2."^/(wp-.+).*/?" => "$0″,
3."^/(sitemap.xml)" => "$0″,
4."^/(xmlrpc.php)" => "$0″,
5."^/(.+)/?$" => "/index.php/$1″
6.)
Phpwind Lighttpd伪静态规则
1.url.rewrite = ("^(.*)-htm-(.*)$" => "$1.php?$2″)
Discuz 6.0/6.1/7.0/7.1/7.2
1.url.rewrite-once = (
2."^/archiver/((fid|tid)-[\w\-]+\.html)$" => "archiver/index.php?$1″,
3."^/forum-([0-9]+)-([0-9]+)\.html$" => "forumdisplay.php?fid=$1&page=$2″,
4."^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "viewthread.php?tid=$1&extra=page=$3&page=$2″,
5."^/space-(username|uid)-(.+)\.html$" => "space.php?$1=$2″,
6."^/tag-(.+)\.html$" => "tag.php?name=$1″
7.)
Discuz!X Lighttpd伪静态规则
1.url.rewrite = (
2."^/topic-(.+)\.html$" => "/portal.php?mod=topic&topic=$1",
3."^/article-([0-9]+)\.html$" => "/portal.php?mod=article&articleid=$1",
4."^/forum-(\w+)-([0-9]+)\.html$" => "/forum.php?mod=forumdisplay&fid=$1&page=$2",
5."^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "/forum.php?mod=viewthread&tid=$1&extra=page=$3&page=$2",
6."^/group-([0-9]+)-([0-9]+)\.html$" => "/forum.php?mod=group&fid=$1&page=$2",
7."^/space-(username|uid)-(.+)\.html$" => "/home.php?mod=space&$1=$2",
8."^/([a-z]+)-(.+)\.html$" => "/$1.php?rewrite=$2"
9.)
ecshop Lighttpd伪静态规则
1.url.rewrite = (
2."^/index.html$" => "/index.php",
3."^/category$" => "/index.php",
4."^/feed-c([0-9]+).xml$" => "/feed.php?cat=$1",
5."^/feed-b([0-9]+).xml$" => "/feed.php?brand=$1",
6."^/feed-type([^-]+).xml$" => "/feed.php?type=$1",
7."^/feed.xml$" => "/feed.php",
8."^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$" => "/category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8",
9."^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*).html$" => "/category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5",
10."^/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$" => "/category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5",
11."^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*).html$" => "/category.php?id=$1&brand=$2&page=$3",
12."^/category-([0-9]+)-b([0-9]+)(.*).html$" => "/category.php?id=$1&brand=$2",
13."^/category-([0-9]+)(.*).html$" => "/category.php?id=$1",
14."^/goods-([0-9]+)(.*).html$" => "/goods.php?id=$1",
15."^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$" => "/article_cat.php?id=$1&page=$2&sort=$3&order=$4",
16."^/article_cat-([0-9]+)-([0-9]+)(.*).html$" => "/article_cat.php?id=$1&page=$2",
17."^/article_cat-([0-9]+)(.*).html$" => "/article_cat.php?id=$1",
18."^/article-([0-9]+)(.*).html$" => "/article.php?id=$1",
19."^/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+).html$" => "/brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5",
20."^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*).html$" => "/brand.php?id=$1&cat=$2&page=$3",
21."^/brand-([0-9]+)-c([0-9]+)(.*).html$" => "/brand.php?id=$1&cat=$2",
22."^/brand-([0-9]+)(.*).html$" => "/brand.php?id=$1",
23."^/tag-(.*).html$" => "/search.php?keywords=$1",
24."^/snatch-([0-9]+).html$" => "/snatch.php?id=$1",
25."^/group_buy-([0-9]+).html$" => "/group_buy.php?act=view&id=$1",
26."^/auction-([0-9]+).html$" => "/auction.php?act=view&id=$1",
27."^/exchange-id([0-9]+)(.*).html$" => "/exchange.php?id=$1&act=view",
28."^/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$" => "/exchange.php?cat_id=$1&integral_min=$2&integral_max=$3&page=$4&sort=$5&order=$6",
29."^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$" => "/exchange.php?cat_id=$1&page=$2&sort=$3&order=$4",
30."^/exchange-([0-9]+)-([0-9]+)(.*).html$" => "/exchange.php?cat_id=$1&page=$2",
31."^/exchange-([0-9]+)(.*).html$" => "/exchange.php?cat_id=$1"
32.)

(责任编辑:IT)
------分隔线----------------------------