From e63ace8599c5452ba67bd7d5aac3c1ca1b66e476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Mon, 24 Mar 2025 22:50:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=96=87=E7=AB=A0=E4=BC=AA?= =?UTF-8?q?=E9=9D=99=E6=80=81=E5=90=88=E7=90=86=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/templets/catalog_add.htm | 4 ++-- src/admin/templets/catalog_add_quick.htm | 4 ++-- src/admin/templets/catalog_edit.htm | 4 ++-- src/system/helpers/channelunit.helper.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/admin/templets/catalog_add.htm b/src/admin/templets/catalog_add.htm index 8f6b6e50..4691d3c3 100644 --- a/src/admin/templets/catalog_add.htm +++ b/src/admin/templets/catalog_add.htm @@ -247,8 +247,8 @@

{typedir} 栏目保存目录

{cc} 日期加混编id后用转换为适合字母

伪静态规则(Nginx)

-

rewrite ^/article-([0-9]+).html$ /apps/view.php?arcID=$1;

-

rewrite ^/article-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;

+

rewrite ^/article/([0-9]+).html$ /apps/view.php?arcID=$1;

+

rewrite ^/article/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;

SEO标题 diff --git a/src/admin/templets/catalog_add_quick.htm b/src/admin/templets/catalog_add_quick.htm index f5a560a7..4670cf2c 100644 --- a/src/admin/templets/catalog_add_quick.htm +++ b/src/admin/templets/catalog_add_quick.htm @@ -105,8 +105,8 @@

{typedir} 栏目保存目录

{cc} 日期加混编id后用转换为适合字母

伪静态规则(Nginx)

-

rewrite ^/article-([0-9]+).html$ /apps/view.php?arcID=$1;

-

rewrite ^/article-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;

+

rewrite ^/article/([0-9]+).html$ /apps/view.php?arcID=$1;

+

rewrite ^/article/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;

默认页的名称 diff --git a/src/admin/templets/catalog_edit.htm b/src/admin/templets/catalog_edit.htm index 146706b6..dbccd589 100644 --- a/src/admin/templets/catalog_edit.htm +++ b/src/admin/templets/catalog_edit.htm @@ -230,8 +230,8 @@

{typedir} 栏目保存目录

{cc} 日期加混编id后用转换为适合字母

伪静态规则(Nginx)

-

rewrite ^/article-([0-9]+).html$ /apps/view.php?arcID=$1;

-

rewrite ^/article-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;

+

rewrite ^/article/([0-9]+).html$ /apps/view.php?arcID=$1;

+

rewrite ^/article/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;

SEO标题 diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php index b14f69c7..f45f6a2d 100755 --- a/src/system/helpers/channelunit.helper.php +++ b/src/system/helpers/channelunit.helper.php @@ -205,8 +205,8 @@ if (!function_exists('GetFileName')) { //动态文档 if ($rank != 0 || $ismake == -1 || $typeid == 0 || $money > 0) { if ($cfg_rewrite == 'Y') { - //开启伪静态文档/article-1.html、/article-2.html,则分页/article-1-1.html、/article-1-2.html - return $GLOBALS['cfg_cmspath']."/article-".$aid.".html"; + //开启伪静态文档/article/1.html、/article/2.html,则分页/article/1-1.html、/article/1-2.html + return $GLOBALS['cfg_cmspath']."/article/".$aid.".html"; } else { return $GLOBALS['cfg_phpurl']."/view.php?aid=$aid"; }