手机版

Lighttpd wordpress Phpwind Discuz 7 Discuz!X ecshop伪静态规则

时间:2020-02-14 来源:互联网 编辑:宝哥软件园 浏览:

Apache的伪静态规则不需要我们操心,因为会自动生成,但Lighttpd则需要自己编写了,下面收集了wordpress Phpwind Discuz 7 Discuz!X ecshop几种常用程序的Lighttpd伪静态规则。

WordPress Lighttpd伪静态规则

url.rewrite = (
"^/(wp-.+).*/?" => "$0″,
"^/(sitemap.xml)" => "$0″,
"^/(xmlrpc.php)" => "$0″,
"^/(.+)/?$" => "/index.php/$1″
)

Phpwind Lighttpd伪静态规则

url.rewrite = ("^(.*)-htm-(.*)$" => "$1.php?$2″)

Discuz 6.0/6.1/7.0/7.1/7.2

url.rewrite-once = (
"^/archiver/((fid|tid)-[w-]+.html)$" => "archiver/index.php?$1″,
"^/forum-([0-9]+)-([0-9]+).html$" => "forumdisplay.php?fid=$1&page=$2″,
"^/thread-([0-9]+)-([0-9]+)-([0-9]+).html$" => "viewthread.php?tid=$1&extra=page=$3&page=$2″,
"^/space-(username|uid)-(.+).html$" => "space.php?$1=$2″,
"^/tag-(.+).html$" => "tag.php?name=$1″
)

Discuz!X Lighttpd伪静态规则

url.rewrite = (
"^/topic-(.+).html$" => "/portal.php?mod=topic&topic=$1",
"^/article-([0-9]+).html$" => "/portal.php?mod=article&articleid=$1",
"^/forum-(w+)-([0-9]+).html$" => "/forum.php?mod=forumdisplay&fid=$1&page=$2",
"^/thread-([0-9]+)-([0-9]+)-([0-9]+).html$" => "/forum.php?mod=viewthread&tid=$1&extra=page=$3&page=$2",
"^/group-([0-9]+)-([0-9]+).html$" => "/forum.php?mod=group&fid=$1&page=$2",
"^/space-(username|uid)-(.+).html$" => "/home.php?mod=space&$1=$2",
"^/([a-z]+)-(.+).html$" => "/$1.php?rewrite=$2"
)

ecshop Lighttpd伪静态规则

url.rewrite = (
"^/index.html$" => "/index.php",
"^/category$" => "/index.php",
"^/feed-c([0-9]+).xml$" => "/feed.php?cat=$1",
"^/feed-b([0-9]+).xml$" => "/feed.php?brand=$1",
"^/feed-type([^-]+).xml$" => "/feed.php?type=$1",
"^/feed.xml$" => "/feed.php",
"^/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",
"^/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",
"^/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$" => "/category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5",
"^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*).html$" => "/category.php?id=$1&brand=$2&page=$3",
"^/category-([0-9]+)-b([0-9]+)(.*).html$" => "/category.php?id=$1&brand=$2",
"^/category-([0-9]+)(.*).html$" => "/category.php?id=$1",
"^/goods-([0-9]+)(.*).html$" => "/goods.php?id=$1",
"^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$" => "/article_cat.php?id=$1&page=$2&sort=$3&order=$4",
"^/article_cat-([0-9]+)-([0-9]+)(.*).html$" => "/article_cat.php?id=$1&page=$2",
"^/article_cat-([0-9]+)(.*).html$" => "/article_cat.php?id=$1",
"^/article-([0-9]+)(.*).html$" => "/article.php?id=$1",
"^/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+).html$" => "/brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5",
"^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*).html$" => "/brand.php?id=$1&cat=$2&page=$3",
"^/brand-([0-9]+)-c([0-9]+)(.*).html$" => "/brand.php?id=$1&cat=$2",
"^/brand-([0-9]+)(.*).html$" => "/brand.php?id=$1",
"^/tag-(.*).html$" => "/search.php?keywords=$1",
"^/snatch-([0-9]+).html$" => "/snatch.php?id=$1",
"^/group_buy-([0-9]+).html$" => "/group_buy.php?act=view&id=$1",
"^/auction-([0-9]+).html$" => "/auction.php?act=view&id=$1",
"^/exchange-id([0-9]+)(.*).html$" => "/exchange.php?id=$1&act=view",
"^/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",
"^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$" => "/exchange.php?cat_id=$1&page=$2&sort=$3&order=$4",
"^/exchange-([0-9]+)-([0-9]+)(.*).html$" => "/exchange.php?cat_id=$1&page=$2",
"^/exchange-([0-9]+)(.*).html$" => "/exchange.php?cat_id=$1"
)

版权声明:Lighttpd wordpress Phpwind Discuz 7 Discuz!X ecshop伪静态规则是由宝哥软件园云端程序自动收集整理而来。如果本文侵犯了你的权益,请联系本站底部QQ或者邮箱删除。

相关文章推荐