httpd.ini web.config转web.config,麻烦大神来看看。

您好,欢迎来到!
[270890]httpd.ini伪静态规则转换为web.config规则
XX天XX时XX分XX秒
赏金分配:单人中标,一人独享赏金。
雇主选一人中标,一人独享中标金!
雇主已托管全部赏金,中标者可得到悬赏金的80%。
ASP网站程序,现有伪静态规则为httpd.ini,IIS7下不支持&,需要转换为web.config规则
补充附件:[补充于
页面加载中...
评论加载中...
所在地区:陕西-榆林地区
信用等级:
交稿数量222
分享可赚钱,赶快告诉您的朋友吧httpd.ini伪静态规则怎么转换成web.config格式?_百度知道
httpd.ini伪静态规则怎么转换成web.config格式?
testx_portal_topic&MatchAll&false&&gt:1}&& trackAllCaptures=&false&\ patternSyntax=&& patternSyntax=&action type=&&#47&/&/// enabled=&weixin&#47,URL中的/ logRewrittenUrl=&false&
&api/如果不行;true&quot.*)$&testx_portal_topic&&
&Rewrite& appendQueryString=&weixin\login\ negate=& ignoreCase=&conditions logicalGrouping=& stopProcessing=&quot.*)$& / trackAllCaptures=&/\ enabled=&/true&MatchAll&conditions logicalGrouping=&
&match url=&true&ECMAScript&true& negate=&改为\&{R;false& url=& url=& //false& /action type=&ECMAScript&quot.php\
&& ignoreCase=&false&/
&true&&rule& &#47.php/true&/
&lt,请考虑把 规则的:1}&
& stopProcessing=&true&rule name=&api\ logRewrittenUrl=&
& appendQueryString=&match url=&weixin(;Rewrite&rule&{R;weixin(;true& //login/ /
&rule name=&quot
来自团队:
其他类似问题
为您推荐:
ini的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁Discuz X2.5伪静态文件 httpd.ini 、.htaccess 和 web.config 应用中心一键下载
楼主关注的插件
本扩展是方便站长添加服务器伪静态规则文件的,只建议刚接触Discuz,还不会添加设置伪静态的站长使用
相关教程:
备注:如果你的伪静态不是按默认的设置,可在:http://你的网站地址/admin.php?action=checktools&operation=rewrite&frame=no复制代码来查看你的伪静态规则
X2.5默认伪静态规则:
Apache Web Server(独立主机用户) &IfModule mod_rewrite.c&
Rewri**gine On
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3&%1
&/IfModule&
复制代码Apache Web Server(虚拟主机用户) # 将 Rewri**gine 模式打开
Rewri**gine On
# 修改以下语句中的 /discuz 为您的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
RewriteBase /discuz
# Rewrite 系统规则请勿修改
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1
复制代码IIS Web Server(独立主机用户)[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/topic-(.+)\.html(\?(.*))*$ $1/portal\.php\?mod=topic&topic=$2&$4
RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/portal\.php\?mod=view&aid=$2&page=$3&$5
RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$5
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$6
RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=group&fid=$2&page=$3&$5
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5
RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/home\.php\?mod=space&uid=$2&do=blog&id=$3&$5
RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html(\?(.*))*$ $1/index\.php\?action=$2&value=$3&$5
RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html(\?(.*))*$ $1/plugin\.php\?id=$2:$3&$5
复制代码IIS7 Web Server(独立主机用户)&rewrite&
&rules&
&rule name=&portal_topic&&
&match url=&^(.*/)*topic-(.+).html\?*(.*)$& /&
&action type=&Rewrite& url=&{R:1}/portal.php\?mod=topic&topic={R:2}&{R:3}& /&
&/rule&
&rule name=&portal_article&&
&match url=&^(.*/)*article-([0-9]+)-([0-9]+).html\?*(.*)$& /&
&action type=&Rewrite& url=&{R:1}/portal.php\?mod=view&aid={R:2}&page={R:3}&{R:4}& /&
&/rule&
&rule name=&forum_forumdisplay&&
&match url=&^(.*/)*forum-(\w+)-([0-9]+).html\?*(.*)$& /&
&action type=&Rewrite& url=&{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&page={R:3}&{R:4}& /&
&/rule&
&rule name=&forum_viewthread&&
&match url=&^(.*/)*thread-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$& /&
&action type=&Rewrite& url=&{R:1}/forum.php\?mod=viewthread&tid={R:2}&extra=page%3D{R:4}&page={R:3}&{R:5}& /&
&/rule&
&rule name=&group_group&&
&match url=&^(.*/)*group-([0-9]+)-([0-9]+).html\?*(.*)$& /&
&action type=&Rewrite& url=&{R:1}/forum.php\?mod=group&fid={R:2}&page={R:3}&{R:4}& /&
&/rule&
&rule name=&home_space&&
&match url=&^(.*/)*space-(username|uid)-(.+).html\?*(.*)$& /&
&action type=&Rewrite& url=&{R:1}/home.php\?mod=space&{R:2}={R:3}&{R:4}& /&
&/rule&
&rule name=&home_blog&&
&match url=&^(.*/)*blog-([0-9]+)-([0-9]+).html\?*(.*)$& /&
&action type=&Rewrite& url=&{R:1}/home.php\?mod=space&uid={R:2}&do=blog&id={R:3}&{R:4}& /&
&/rule&
&rule name=&forum_archiver&&
&match url=&^(.*/)*(fid|tid)-([0-9]+).html\?*(.*)$& /&
&action type=&Rewrite& url=&{R:1}/index.php\?action={R:2}&value={R:3}&{R:4}& /&
&/rule&
&rule name=&plugin&&
&match url=&^(.*/)*([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+).html\?*(.*)$& /&
&action type=&Rewrite& url=&{R:1}/plugin.php\?id={R:2}:{R:3}&{R:4}& /&
&/rule&
&/rules&
&/rewrite&
复制代码Zeus Web Servermatch URL into $ with ^(.*)/topic-(.+)\.html\?*(.*)$
if matched then
set URL = $1/portal.php?mod=topic&topic=$2&$3
endif
match URL into $ with ^(.*)/article-([0-9]+)-([0-9]+)\.html\?*(.*)$
if matched then
set URL = $1/portal.php?mod=view&aid=$2&page=$3&$4
endif
match URL into $ with ^(.*)/forum-(\w+)-([0-9]+)\.html\?*(.*)$
if matched then
set URL = $1/forum.php?mod=forumdisplay&fid=$2&page=$3&$4
endif
match URL into $ with ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$
if matched then
set URL = $1/forum.php?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$5
endif
match URL into $ with ^(.*)/group-([0-9]+)-([0-9]+)\.html\?*(.*)$
if matched then
set URL = $1/forum.php?mod=group&fid=$2&page=$3&$4
endif
match URL into $ with ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$
if matched then
set URL = $1/home.php?mod=space&$2=$3&$4
endif
match URL into $ with ^(.*)/blog-([0-9]+)-([0-9]+)\.html\?*(.*)$
if matched then
set URL = $1/home.php?mod=space&uid=$2&do=blog&id=$3&$4
endif
match URL into $ with ^(.*)/(fid|tid)-([0-9]+)\.html\?*(.*)$
if matched then
set URL = $1/index.php?action=$2&value=$3&$4
endif
match URL into $ with ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html\?*(.*)$
if matched then
set URL = $1/plugin.php?id=$2:$3&$4
endif
复制代码Nginx Web Serverrewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2
rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3
rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3
rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3
rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3
rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3
rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3
rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3
if (!-e $request_filename) {
return 404;
}
复制代码上一篇:下一篇:
width:100%">
Discuz商业插件
Discuz模板风格
Discuz商业扩展
Powered byhttpd.ini怎么转成web.config_百度知道
httpd.ini怎么转成web.config
itemid=$2&page=$3RewriteRule ^(;]).*)&#92.*)/index&#92.*)-htm-(;.*)&#47.html$ $1&#47.php&#92?&#92.php&#92.*)/-]);([0-9]+)/([a-z]+)&#47.*)&#47?$2RewriteRule ^(?catid=$2&page=$3RewriteRule ^(.*)$ $1\([a-z0-9_]+)/$3&#47.phpRewriteRule ^(.*)\;com/;show\;index\;404&#92.html$ $1&#47.*)&#47?$ $1&#47.php\.shtml$ $1&#47?$ $1/]);company/;;]);([a-z]+)/([0-9]+);;show&#47.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(?$ $1&#47?homepage=$2RewriteRule ^(;.html$ $1/(.*)&#47.*)$ &#47这是;;list\list&#47.0# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# P;;;company/com&#47.php&#92?&#92.ini and httpd.php\([a-z0-9_]+)/.*)\.]).php\?itemid=$2&page=$4RewriteRule ^(?([0-9]+);;;;list-([0-9]+)([&#92?([&#47?catid=$2&page=$4RewriteRule ^(;.php&#92.errors files# from accessing through HTTPRewriteRule ^(;index\([0-9]+).php\show-([0-9]+)([\([0-9]+)&#47?$ $1/-]);$3&#47.*)&#47.*)/?([0-9]+);company/show\([a-z]+)([/list&#92?homepage=$2RewriteRule ^(.php\([a-z0-9_]+)([&#47?([/;(;com&#47?homepage=$2&rewrite=$4RewriteRule ^(;index\$2&#47.ini文件的内容 [ISAPI_Rewrite]# Destoon V3
提问者采纳
([a-z0-9_]+)([/match url=&([0-9]+)/false&&([a-z]+)([&#47:1}&#47.*)-htm-(;^(;&action type=&&gt:2}&rule&gt?catid={R;rewrite&
&index\
& /false&quot?itemid={R;;action type=&/&Rewrite&/
&false& appendQueryString=& appendQueryString=&quot.html$&quot?homepage={R;&action type=&match url=&quot.php\Imported Rule 35&
&;Imported Rule 34&
&;false&.*)&#47.shtml$& url=&/show\rule&.*)/-]);rule& url=&
&lt?([0-9]+);
&lt?([&#47:3}&#47?catid={R;{R;([a-z0-9_]+)/ &#47.*)&#47.php&#92:3}&quot:4}& ignoreCase=& url=& /;action type=&Imported Rule 40&quot.*)/&#47?\false& ignoreCase=&
&&action type=&/
&lt?\; ignoreCase=&
&lt.php\;
&&rule name=&{R?$&
&false& appendQueryString=&match url=&;show/ /
&lt.php\
&&gt:2}&Imported Rule 38&;rule name=&rule&;^(;
&Imported Rule 42&Imported Rule 41&{R;{R;404\com/{R;page={R;; ignoreCase=&
&match url=&false&
&; ignoreCase=&false&quot?homepage={R:1}&#47.*)&#47.php&; appendQueryString=& /&/ // /&gt.php&#92.html$&&company/com&#47:1}/rule&
&([a-z]+)&#47?$&rule&gt?homepage={R; appendQueryString=&false&&Rewrite&
&^(; appendQueryString=& /Rewrite& /([a-z0-9_]+)&#47:2}&list\]);rule name=&^(;&gt?rewrite={R; url=&quot?{R;action type=&([0-9]+)/rule&rule name=&index&#92.php\{R;Rewrite&action type=&/page={R;{R;rules&Rewrite&
&rule name=& appendQueryString=&([0-9]+);false&quot:4}&^(;&gt.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(;false&index\;&Rewrite&company/]):2}/
&rule&list-([0-9]+)([\
&;false& appendQueryString=& url=& url=&quot:1}/Imported Rule 36&quot.php&#92:2}&
&rule name=&Imported Rule 39&Imported Rule 43& ignoreCase=&quot?([/&gt.*)/& /; //
&lt.*)$&{R;
&lt.*)&#47:2}&match url=&rule&gt:1}\page={R; ignoreCase=&show&#92:2}& /
& url=&quot:3}/-])?$&quot:1}/false&quot:2}&{R; /Imported Rule 37&
& url=&{R;list/ //
&lt:3}&quot?([0-9]+);company&#47.php\;
&&;([0-9]+);
&rewrite={R;page={R;rule name=& /Rewrite&quot.*)\rules&false&&^(;&gt.*)/^(.*)\ &#47:1}/rule name=&quot.*)$&match url=&false&false&quot.html$&quot:1}/([a-z]+)/]);^(;show-([0-9]+)([\ url=&&Rewrite&match url=& / ignoreCase=&quot.*)\ ignoreCase=&Rewrite&
&false&quot:3}&&&&;false&&#47:1}/
&&&&; /^(;match url=&rule name=& url=&])?itemid={R;
&Rewrite&action type=&rule&index\ /&#47.php&#92?$&quot:2}&;;match url=&match url=& ignoreCase=&
&action type=&&
&false& appendQueryString=&quot:4}&com/
&{R;{R;rule name=&list\&^(;(;rewrite&action type=&(
提问者评价
其他类似问题
为您推荐:
ini的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁}

我要回帖

更多关于 chkconfig httpd on 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信