@@ -247,8 +247,8 @@ | |||||
<p>{typedir} 栏目保存目录</p> | <p>{typedir} 栏目保存目录</p> | ||||
<p>{cc} 日期加混编id后用转换为适合字母</p> | <p>{cc} 日期加混编id后用转换为适合字母</p> | ||||
<p>伪静态规则(Nginx)</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> | </div> | ||||
</td> | </td> | ||||
<td>SEO标题</td> | <td>SEO标题</td> | ||||
@@ -105,8 +105,8 @@ | |||||
<p>{typedir} 栏目保存目录</p> | <p>{typedir} 栏目保存目录</p> | ||||
<p>{cc} 日期加混编id后用转换为适合字母</p> | <p>{cc} 日期加混编id后用转换为适合字母</p> | ||||
<p>伪静态规则(Nginx)</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> | </div> | ||||
</td> | </td> | ||||
<td>默认页的名称</td> | <td>默认页的名称</td> | ||||
@@ -230,8 +230,8 @@ | |||||
<p>{typedir} 栏目保存目录</p> | <p>{typedir} 栏目保存目录</p> | ||||
<p>{cc} 日期加混编id后用转换为适合字母</p> | <p>{cc} 日期加混编id后用转换为适合字母</p> | ||||
<p>伪静态规则(Nginx)</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> | </div> | ||||
</td> | </td> | ||||
<td>SEO标题</td> | <td>SEO标题</td> | ||||
@@ -205,8 +205,8 @@ if (!function_exists('GetFileName')) { | |||||
//动态文档 | //动态文档 | ||||
if ($rank != 0 || $ismake == -1 || $typeid == 0 || $money > 0) { | if ($rank != 0 || $ismake == -1 || $typeid == 0 || $money > 0) { | ||||
if ($cfg_rewrite == 'Y') { | 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 { | } else { | ||||
return $GLOBALS['cfg_phpurl']."/view.php?aid=$aid"; | return $GLOBALS['cfg_phpurl']."/view.php?aid=$aid"; | ||||
} | } | ||||