@@ -228,7 +228,7 @@ | |||||
<p>{page} 栏目页码数</p> | <p>{page} 栏目页码数</p> | ||||
<p>伪静态规则(Nginx)</p> | <p>伪静态规则(Nginx)</p> | ||||
<p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p> | <p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p> | ||||
<p>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&PageNo=$2;</p> | |||||
<p>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&pageno=$2;</p> | |||||
</div> | </div> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -86,7 +86,7 @@ | |||||
<p>{page} 栏目页码数</p> | <p>{page} 栏目页码数</p> | ||||
<p>伪静态规则(Nginx)</p> | <p>伪静态规则(Nginx)</p> | ||||
<p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p> | <p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p> | ||||
<p>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&PageNo=$2;</p> | |||||
<p>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&pageno=$2;</p> | |||||
</div> | </div> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -211,7 +211,7 @@ | |||||
<p>{page} 栏目页码数</p> | <p>{page} 栏目页码数</p> | ||||
<p>伪静态规则(Nginx)</p> | <p>伪静态规则(Nginx)</p> | ||||
<p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p> | <p>rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;</p> | ||||
<p>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&PageNo=$2;</p> | |||||
<p>rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&pageno=$2;</p> | |||||
</div> | </div> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -1204,7 +1204,7 @@ class ListView | |||||
//伪静态栏目分页 | //伪静态栏目分页 | ||||
if ($cfg_rewrite == 'Y') { | if ($cfg_rewrite == 'Y') { | ||||
$plist = str_replace(".php?tid=", "-", $plist); | $plist = str_replace(".php?tid=", "-", $plist); | ||||
$plist = preg_replace("/&PageNo=(\d+)/i", "-\\1", $plist); | |||||
$plist = preg_replace("/&pageno=(\d+)/i", "-\\1", $plist); | |||||
$plist = preg_replace("/&TotalResult=(\d+)/i", "", $plist);//去掉分页数值 | $plist = preg_replace("/&TotalResult=(\d+)/i", "", $plist);//去掉分页数值 | ||||
} | } | ||||
return $plist; | return $plist; | ||||
@@ -1032,7 +1032,7 @@ class SgListView | |||||
//伪静态栏目分页 | //伪静态栏目分页 | ||||
if ($cfg_rewrite == 'Y') { | if ($cfg_rewrite == 'Y') { | ||||
$plist = str_replace(".php?tid=", "-", $plist); | $plist = str_replace(".php?tid=", "-", $plist); | ||||
$plist = preg_replace("/&PageNo=(\d+)/i", "-\\1", $plist); | |||||
$plist = preg_replace("/&pageno=(\d+)/i", "-\\1", $plist); | |||||
$plist = preg_replace("/&TotalResult=(\d+)&/i", "?", $plist);//去掉分页数值 | $plist = preg_replace("/&TotalResult=(\d+)&/i", "?", $plist);//去掉分页数值 | ||||
} | } | ||||
return $plist; | return $plist; | ||||