该问题已被锁定!
2
关注
2881
浏览

IIS虚拟主机下,的Rewrite规则 web.config文件应该怎么写?

AI智能回复搜索中,请稍后...

查看全部 2 个回答

zvzoo 注册会员 用户来自于: 山东省
2017-02-13 12:45
[ISAPI_Rewrite]
3600 = 1 hour

CacheClockRate 3600
RepeatLimit 32
RewriteRule ^/$ /? [L]
RewriteRule ^/topic/(.*)$ /\?\/topic/$1 [L]
RewriteRule ^/users/(.*)$ /\?\/users/$1 [L]
RewriteRule ^/favorite/(.*)$ /\?\/favorite/$1 [L]
RewriteRule ^/explore/(.*)$ /\?\/explore/$1 [L]
RewriteRule ^/notifications/(.*)$ /\?\/notifications/$1 [L]
RewriteRule ^/inbox/(.*)$ /\?\/inbox/$1 [L]
RewriteRule ^/people/(.*)$ /\?\/people/$1 [L]
RewriteRule ^/setting/(.*)$ /\?\/setting/$1 [L]
RewriteRule ^/logout/(.*)$ /\?\/logout/$1 [L]
RewriteRule ^/publish/(.*)$ /\?\/publish/$1 [L]
RewriteRule ^/feature/(.*)$ /\?\/feature/$1 [L]
RewriteRule ^/home/(.*)$ /\?\/home/$1 [L]
RewriteRule ^/account/(.*)$ /\?\/account/$1 [L]
RewriteRule ^/login/(.*)$ /\?\/login/$1 [L]
RewriteRule ^/reader/(.*)$ /\?\/reader/$1 [L]
RewriteRule ^/search/(.*)$ /\?\/search/$1 [L]
RewriteRule ^/crond/(.*)$ /\?\/crond/$1 [L]
RewriteRule ^/invitation/(.*)$ /\?\/invitation/$1 [L]
RewriteRule ^/admin/(.*)$ /\?\/admin/$1 [L]
RewriteRule ^/m/(.*)$ /\?\/m/$1 [L]
RewriteRule ^/question/(.*)$ /\?\/question/$1 [L]
RewriteRule ^/category/(.*)$ /\?\/home/explore/category/$1 [L]
RewriteRule ^/feed/(.*)$ /\?\/feed/$1 [L]
RewriteRule ^/first_(.)$ /\?\/first_(.)/$1 [L]
RewriteRule ^/follow/(.*)$ /\?\/follow/$1 [L]
RewriteRule ^/weixin/(.*)$ /\?\/weixin/$1 [L]
RewriteRule ^/upgrade/(.*)$ /\?\/upgrade/$1 [L]
RewriteRule ^/article/(.*)$ /\?\/article/$1 [L] 
iis管理器 - url 重写 - 导入规则 复制上面代码 在“重写规则”下面黏贴代码 应用 后台开启伪静态 OK

关于作者

aijun 注册会员

这家伙很懒,还没有设置简介

问题动态

发布时间
2017-02-09 11:01
更新时间
2017-02-13 12:45
关注人数
2 人关注

推荐内容

为什么/question/(:num)===/(:num)不能用?
二级目录安装wecenter,rewrite到根目录怎么做?
【已解决】这样的伪静态规格怎么写?
anwsion系统在nginx,apache,iis下伪静态开启步骤
伪静态设置不成功 404 我用的apache
Rewrite规则中有个弯扰不过来了,哪位高人帮看一下吧。
3.1.2版本伪静态rewrite
Rewrite伪静态后台设置后,后台无法登陆怎么办?
lnmp如何启用中文URL?
这样显示表明伪静态成功了没?