浏览代码

调整文章伪静态合理化

tags/6.5.0
叙述、别离 1周前
父节点
当前提交
e63ace8599
共有 4 个文件被更改,包括 8 次插入8 次删除
  1. +2
    -2
      src/admin/templets/catalog_add.htm
  2. +2
    -2
      src/admin/templets/catalog_add_quick.htm
  3. +2
    -2
      src/admin/templets/catalog_edit.htm
  4. +2
    -2
      src/system/helpers/channelunit.helper.php

+ 2
- 2
src/admin/templets/catalog_add.htm 查看文件

@@ -247,8 +247,8 @@
<p>{typedir} 栏目保存目录</p>
<p>{cc} 日期加混编id后用转换为适合字母</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/article-([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<p>rewrite ^/article-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</p>
<p>rewrite ^/article/([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<p>rewrite ^/article/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</p>
</div>
</td>
<td>SEO标题</td>


+ 2
- 2
src/admin/templets/catalog_add_quick.htm 查看文件

@@ -105,8 +105,8 @@
<p>{typedir} 栏目保存目录</p>
<p>{cc} 日期加混编id后用转换为适合字母</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/article-([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<p>rewrite ^/article-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</p>
<p>rewrite ^/article/([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<p>rewrite ^/article/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</p>
</div>
</td>
<td>默认页的名称</td>


+ 2
- 2
src/admin/templets/catalog_edit.htm 查看文件

@@ -230,8 +230,8 @@
<p>{typedir} 栏目保存目录</p>
<p>{cc} 日期加混编id后用转换为适合字母</p>
<p>伪静态规则(Nginx)</p>
<p>rewrite ^/article-([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<p>rewrite ^/article-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</p>
<p>rewrite ^/article/([0-9]+).html$ /apps/view.php?arcID=$1;</p>
<p>rewrite ^/article/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</p>
</div>
</td>
<td>SEO标题</td>


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


正在加载...
取消
保存