开发者社区> 问答> 正文

配置帝国cms环境时伪静态规则选项该选哪一个

后台显示
Allow Rewrite rule? [y/n]: y
Please input the rewrite of programme :
wordpress,opencart,magento2,drupal,joomla,laravel,thinkphp,pathinfo,discuz,typecho,ecshop,nextcloud rewrite was exist.
(Default rewrite: other): 
如果是帝国cms需要怎么样的静态规则?
谢谢!

展开
收起
angus520 2018-10-28 17:27:30 1211 0
1 条回答
写回答
取消 提交回答
  • Sinesafe专注于网站安全,服务器安全,解决各类网络安全问题,对代码审计以及漏洞修补安全加固有专业的十年实战经验.官方站点www.sinesafe.com
    先随便选择一个,然后到时修改网站根目录下的.htaccess文件 复制以下内容即可,立即生效的。
    RewriteEngine On
    ErrorDocument 404 /404.html
    Rewritebase /
    #信息列表
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^listinfo-(.+?)-(.+?)\.html$ /e/action/ListInfo/index\.php\?classid=$1&page=$2
    #信息内容页
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^showinfo-(.+?)-(.+?)-(.+?)\.html$ /e/action/ShowInfo\.php\?classid=$1&id=$2&page=$3
    #标题分类列表页
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^infotype-(.+?)-(.+?)\.html$ /e/action/InfoType/index\.php\?ttid=$1&page=$2
    #TAGS信息列表页
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^tags-(.+?)-(.+?)\.html$ /e/tags/index\.php\?tagname=$1&page=$2
    #评论列表页
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)\.html$  /e/pl/index\.php\?doaction=$1&classid=$2&id=$3&page=$4&myorder=$5&tempid=$6
    2018-10-29 09:10:31
    赞同 1 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
SEO学习步骤 立即下载
云盾-Web应用防火墙(WAF)用户接入手册 立即下载
《Nginx 代理系统常用手册》 立即下载