5ucms如何实现伪静态?

2025-11-19 16:12:59

1、服务器上要安装好这个组件,或是购买的空间有这个组件,详细咨询您的空间商

2、在网站根目录下,一般是wwwroot,建立httpd.ini文件,内容如下

[ISAPI_Rewrite]

RepeatLimit 32# 无忧网络文章管理系统 Rewrite 规则

RewriteRule ^(.*)/Channel-([0-9]+)-([0-9]+)\.html$ $1/Channel\.Asp\?ID=$2&Page=$3 [I,O]RewriteRule ^(.*)/Channel-([0-9]+)\.html$ $1/Channel\.Asp\?ID=$2 [I,O]

RewriteRule ^(.*)/(.+)_([0-9]+)-([0-9]+)\.html$ $1/Content\.Asp\?ID=$3&Page=$4 [I,O]RewriteRule ^(.*)/(.+)_([0-9]+)\.html$ $1/Content\.Asp\?ID=$3 [I,O]

RewriteRule ^(.*)/([0-9]+)-([0-9]+)\.html$ $1/Content\.Asp\?ID=$2&Page=$3 [I,O]RewriteRule ^(.*)/([0-9]+)\.html$ $1/Content\.Asp\?ID=$2 [I,O]

3、在5ucms后台配置中,开通rewrite模式

即可使用,如果对规则有要求,可以修改栏目或规则文件作进一步设置

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢