doyocms伪静态规则修改
2020-10-31 Umming doyocms 评论(0) 浏览(1991)
伪静态规则
# 将 RewriteEngine 模式打开 RewriteEngine On # 修改以下语句中的 / 改为您的DOYO系统目录地址,如果程序放在根目录中则无需修改 RewriteBase / # Rewrite 系统规则请勿修改 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^content/(\w+)([0-9]+)\.html$ index.php?c=article&file=$1&page=$2&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^type/content/([0-9]+)-([0-9]+)\.html$ index.php?c=article&a=type&tid=$1&page=$2%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^product/(\w+)([0-9]+)\.html$ index.php?c=product&file=$1&page=$2&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^product/type/([0-9]+)-([0-9]+)\.html$ index.php?c=product&a=type&tid=$1&page=$2%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^channel/(\w+)/(\w+)([0-9]+)\.html$ index.php?c=channel&molds=$1&file=$2&page=$3&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^channel/type/([0-9]+)-([0-9]+)\.html$ index.php?c=channel&a=type&tid=$1&page=$2%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^message/type/([0-9]+)-([0-9]+)\.html$ index.php?c=message&a=type&tid=$1&page=$2%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^special/([0-9]+)-([0-9]+)\.html$ index.php?c=special&sid=$1&page=$2%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(\w+)\.html$ index.php?file=$1%1
include/inc.php修改规则
include/function.php修改规则,搜索function html_url,找到频道规则修改
case 'article': if($re==1){ $re_url=$sg.$GLOBALS['G_DY']['rewrite']["rewrite_article"]; if($c['htmlfile']=='')$c['htmlfile']=$c['id']; $go_url=str_replace(array('{id}','{file}'),array($c['id'],$c['htmlfile']),$re_url); $go_url=str_replace(array('{content}'),'content',$go_url);
标签: doyocms
本文链接:https://www.umming.com/doyocms/265.html
声明:本站信息由网友自行发布或来源于网络,真实性、合法性由发布人负责,请仔细甄别!本站只为传递信息,我们不做任何双方证明,也不承担任何法律责任。文章内容若侵犯你的权益,请联系本站删除!
也许你还会对下面的内容感兴趣:
发表评论: