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"; }