[导读]:怎么办把httpd.ini转换一下web.config 伪静态 用的是易企cms。服务器配置需要用web.config。所以需要改写一下,请大神帮帮忙。 httpd.ini文件内容: [ISAPI_Rewrite] 3600 = 1 hour CacheClockRate...
怎么办把httpd.ini转换一下web.config 伪静态
用的是易企cms。服务器配置需要用web.config。所以需要改写一下,请大神帮帮忙。
httpd.ini文件内容:
[ISAPI_Rewrite]
3600 = 1 hour
CacheClockRate 3600RepeatLimit 32
Protect httpd.ini and httpd.parse.errors files
from accessing through HTTP
YIQICMS Rewrite Rule
RewriteRule ^/article/(.+).html$ /article.php\?name=$1RewriteRule ^/product/(.+).html$ /product.php\?name=$1
RewriteRule ^/category/([^/_]+)[/]?$ /category.php\?name=$1
RewriteRule ^/category/([^/]+)_([0-9]+)[/]?$ /category.php\?name=$1&p=$2
RewriteRule ^/catalog/([^/]+)[/]?$ /catalog.php\?type=$1
RewriteRule ^/comment.html$ /comment.php
RewriteRule ^/sitemap.xml$ /sitemap.php
web.config要求文件格式是:
<system.webServer>
</system.webServer>
其中,rule 节点即为每个重写规则,match 节点为伪静态的规则;ignoreCase 是忽略大小写;action 是响应的 (www.1111cn.net)URL,即真正的URL;appendQueryString 为是否跟参数。
添加多个 rule 时,注意 name 名称应该保持不同。
自己已经知道规则原理了,就不要做伸手党了,
本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/36918.html
