最新公告
  • 欢迎您光临 我爱模板网,本站秉承服务宗旨 履行“站长”责任,销售只是起点 服务永无止境! 立即加入钻石VIP
  • 帝国7.0伪静态Apache的Rewrite设置方法

    正文概述 管理员   2025-09-06   6

    这篇文章主要为大家介绍了帝国7.0伪静态Apache的Rewrite设置方法,需要的朋友可以参考下

    代码如下:

    # 将 RewriteEngine 模式打开
    
    RewriteEngine On
    
    #信息内容页:showinfo-[!--classid--]-[!--id--]-[!--page--].html
    
    RewriteCond %{QUERY_STRING} ^(.*)$
    
    RewriteRule ^showinfo-(.+?)-(.+?)-(.+?).html$ /e/action/ShowInfo.php?classid=$1&id=$2&page=$3</p> <p>#信息列表:listinfo-[!--classid--]-[!--page--].html
    
    RewriteCond %{QUERY_STRING} ^(.*)$
    
    RewriteRule ^listinfo-(.+?)-(.+?).html$ /e/action/ListInfo/index.php?classid=$1&page=$2</p> <p>#标题分类列表页:infotype-[!--ttid--]-[!--page--].html
    
    RewriteCond %{QUERY_STRING} ^(.*)$
    
    RewriteRule ^infotype-(.+?)-(.+?).html$ /e/action/InfoType/index.php?ttid=$1&page=$2</p> <p>#TAGS信息列表页:tags-[!--tagname--]-[!--page--].html
    
    RewriteCond %{QUERY_STRING} ^(.*)$
    
    RewriteRule ^tags-(.+?)-(.+?).html$ /e/tags/index.php?tagname=$1&page=$2

    以上就是默认的Rewrite规则设置方法。


    我爱模板网 » 帝国7.0伪静态Apache的Rewrite设置方法

    发表评论

    如需帝国cms功能定制以及二次开发请联系我们

    联系作者
    script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?587cc1e5c052b5b0ce99533beff13c96"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();

    请选择支付方式

    ×
    支付宝支付
    余额支付
    ×
    微信扫码支付 0 元