diff --git a/src/admin/templets/catalog_add.htm b/src/admin/templets/catalog_add.htm index 250c4750..3eceb44a 100644 --- a/src/admin/templets/catalog_add.htm +++ b/src/admin/templets/catalog_add.htm @@ -227,8 +227,8 @@
{tid} 栏目id
{page} 栏目页码数
伪静态规则(Nginx)
-rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;
-rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&pageno=$2;
+rewrite ^/list/([0-9]+)$ /apps/list.php?tid=$1;
+rewrite ^/list/([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&pageno=$2;
diff --git a/src/admin/templets/catalog_add_quick.htm b/src/admin/templets/catalog_add_quick.htm index 14ad5ec6..69a29a67 100644 --- a/src/admin/templets/catalog_add_quick.htm +++ b/src/admin/templets/catalog_add_quick.htm @@ -85,8 +85,8 @@{tid} 栏目id
{page} 栏目页码数
伪静态规则(Nginx)
-rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;
-rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&pageno=$2;
+rewrite ^/list/([0-9]+)$ /apps/list.php?tid=$1;
+rewrite ^/list/([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&pageno=$2;
diff --git a/src/admin/templets/catalog_edit.htm b/src/admin/templets/catalog_edit.htm index fee1b8ae..6f7cdd47 100644 --- a/src/admin/templets/catalog_edit.htm +++ b/src/admin/templets/catalog_edit.htm @@ -210,8 +210,8 @@{tid} 栏目id
{page} 栏目页码数
伪静态规则(Nginx)
-rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;
-rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&pageno=$2;
+rewrite ^/list/([0-9]+)$ /apps/list.php?tid=$1;
+rewrite ^/list/([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&pageno=$2;
diff --git a/src/system/archive/listview.class.php b/src/system/archive/listview.class.php index 9a59c380..1dc65624 100755 --- a/src/system/archive/listview.class.php +++ b/src/system/archive/listview.class.php @@ -1146,7 +1146,7 @@ class ListView //开启伪静态对规则替换 if ($cfg_rewrite == 'Y') { $purl = str_replace("/apps", "", $purl); - $nowurls = preg_replace("/\-/", ".php?", $purl); + $nowurls = preg_replace("/", ".php?", $purl); $nowurls = explode("?", $nowurls); $purl = $nowurls[0]; } @@ -1203,7 +1203,7 @@ class ListView if (preg_match('/info/i', $listitem)) $plist .= $maininfo; //伪静态栏目分页 if ($cfg_rewrite == 'Y') { - $plist = str_replace(".php?tid=", "-", $plist); + $plist = str_replace("?tid=", "", $plist); $plist = preg_replace("/&pageno=(\d+)/i", "-\\1", $plist); $plist = preg_replace("/&TotalResult=(\d+)/i", "", $plist);//去掉分页数值 } diff --git a/src/system/archive/sglistview.class.php b/src/system/archive/sglistview.class.php index a18ad434..d19640cd 100755 --- a/src/system/archive/sglistview.class.php +++ b/src/system/archive/sglistview.class.php @@ -982,7 +982,7 @@ class SgListView //开启伪静态对规则替换 if ($cfg_rewrite == 'Y') { $purl = str_replace("/apps", "", $purl); - $nowurls = preg_replace("/\-/", ".php?", $purl); + $nowurls = preg_replace("/", ".php?", $purl); $nowurls = explode("?", $nowurls); $purl = $nowurls[0]; } @@ -1031,9 +1031,9 @@ class SgListView $plist = $indexpage.$prepage.$listdd.$nextpage.$endpage; //伪静态栏目分页 if ($cfg_rewrite == 'Y') { - $plist = str_replace(".php?tid=", "-", $plist); + $plist = str_replace("?tid=", "", $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; } diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php index f45f6a2d..3d2b1ccf 100755 --- a/src/system/helpers/channelunit.helper.php +++ b/src/system/helpers/channelunit.helper.php @@ -141,8 +141,8 @@ if (!function_exists('GetTypeUrl')) { //动态栏目 if ($isdefault == -1) { if ($cfg_rewrite == 'Y') { - //开启伪静态栏目/list-1、/list-2,则分页/list-1-1、/list-1-2 - $reurl = $GLOBALS['cfg_cmspath']."/list-".$typeid; + //开启伪静态栏目/list/1、/list/2,则分页/list/1-1、/list/1-2 + $reurl = $GLOBALS['cfg_cmspath']."/list/".$typeid; } else { $reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid; }