httpd.ini如何设置httpd.ini伪静态规则则

阅读:2858回复:12
如何把.htaccess伪静态规则换成httpd.ini伪静态规则
发布于: 14:56
其中.htaccess 文件内容为如下RewriteRule ^/([^\.]+)$ /index.php?f=$1 [QSA,L]RewriteRule ^/([^\.]+\.htm)$ /index.php?f=$1 [QSA,L]RewriteRule ^/([^\.]+\.html)$ /index.php?f=$1 [QSA,L]RewriteRule ^/([^\.]+\.shtml)$ /index.php?f=$1 [QSA,L]RewriteRule ^/([^\.]+\.php)$ /index.php?f=$1 [QSA,L]
发布于: 14:57
规则可以不用变,这个是更具自己使用的服务器来改变的
&&& &&论坛常见问题解决方法汇总
发布于: 14:58
不很懂额。.
<span class="lou J_floor_copy" title="复制此楼地址"
data-hash="read_楼#
发布于: 15:02
有哪位高手能够解答吗
<span class="lou J_floor_copy" title="复制此楼地址"
data-hash="read_楼#
发布于: 15:38
http://www..cn
<span class="lou J_floor_copy" title="复制此楼地址"
data-hash="read_楼#
发布于: 16:51
正是我正要找的,正好拿来试试了。真是不错,感谢楼主了。
<span class="lou J_floor_copy" title="复制此楼地址"
data-hash="read_楼#
发布于: 16:59
顶一下 咋没人解答了
<span class="lou J_floor_copy" title="复制此楼地址"
data-hash="read_楼#
发布于: 17:00
<span class="lou J_floor_copy" title="复制此楼地址"
data-hash="read_楼#
发布于: 17:40
规则是通用的,也就是说基本不用修改或者参考
&&& &&论坛常见问题解决方法汇总
<span class="lou J_floor_copy" title="复制此楼地址"
data-hash="read_楼#
发布于: 17:51
用户被禁言,该主题自动屏蔽!
<span class="lou J_floor_copy" title="复制此楼地址"
data-hash="read_楼#
发布于: 18:24
但是iis6.0版本不是只识别这个httpd.ini吗
<span class="lou J_floor_copy" title="复制此楼地址"
data-hash="read_楼#
发布于: 19:07
<span class="lou J_floor_copy" title="复制此楼地址"
data-hash="read_楼#
发布于: 19:30
用户被禁言,该主题自动屏蔽!
Powered by共享iis下的伪静态httpd.ini规则吧
本帖最后由 hallowking 于
09:36 编辑
我来共享iis下的伪静态httpd.ini规则吧
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteEngine on
#content模块
RewriteRule ^(.*)/content-([0-9]+)-([0-9]+)-([0-9]+)\.html$
$1/index\.php\?m=content&c=index&a=show&catid=$2&id=$3&page=$4
RewriteRule ^(.*)/show-([0-9]+)-([0-9]+)-([0-9]+).html$
$1/index\.php\?m=content&c=index&a=show&catid=$2&id=$3&page=$4
RewriteRule ^(.*)/list-([0-9]+)-([0-9]+).html$
$1/index\.php\?m=content&c=index&a=lists&catid=$2&page=$3
此内容写到httpd.ini下,需要
本帖隐藏的内容
在服务器中的cmd中输入iisreset后
就可以用伪静态访问了
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
赞助商广告
相关内容推荐公司热线(8:30-17:30)
在线客服 购买,,就来天强互联
天强互联是国内知名免备案IDC服务商,专业提供:域名注册、月付空间、免备案空间、、、网站建设等服务!
&当前位置:
> 正文300M国内免备案空间300M网站空间,送60M数据库!现价只要:22元/月500M国内免备案空间500M网站空间,送100M数据库!现价只要:29元/月1G国内免备案空间1G网站空间,送300M数据库!现价只要:39元/月3G国内免备案空间3G网站空间,送500M数据库!现价只要:68元/月500M香港免备案空间500M网站空间,送160M数据库!现价只要:26元/月1G香港免备案空间1G网站空间,送300M数据库!现价只要:36元/月3G香港免备案空间3G网站空间,送500M数据库!现价只要:58元/月网站建设问答
[ISAPI_Rewrite]# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files# from accessing through HTTPRewriteRule ^(.*)/topic-(.+)\.html(\?(.*))*$ $1/portal\.php\?mod=topic&topic=$2&$4RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/portal\.php\?mod=view&aid=$2&page=$3&$5RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$5RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$6RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=group&fid=$2&page=$3&$5RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5RewriteRule ^(.*)/([a-z]+)-(.+)\.html(\?(.*))*$ $1/$2\.php\?rewrite=$3&$5&以上是httpd.ini文件的所有内容,注:此方法只适用于 iis 的系统空间规则写好以后,上传到空间的根目录即可,然后就是进到论坛后台管理页面:配置好httpd.ini文件后,进入后台管理,全局- seo设置,全选后,然后确定,更新缓存,搞定。以上是我配置discuz伪静态的方法,完全可用!

我要回帖

更多关于 http.ini 伪静态规则 的文章

 

随机推荐