发了一天的时间终于搞定二级目录下iis httpd.ini伪静态规则搞定了但有两条规则始终搞不定。有哪里位朋友帮忙弄一下。
出问题的规则可能有两条
分别是
RewriteRule ^(.)/admin/(\?(.))*$ $1/\?\/admin/$1 [L]
RewriteRule /ask/(.)$ $1/\?\/ [L]
错识表现是
用管理帐号登录管理后台跳转的地址居然是:www.XXXXXX.com/ask/index.php?/admin//ask
按理来说跳转的地址应该是这个www.XXXXXXX.com/ask/admin/ 才对呀。
有谁能帮忙解决下吗?
本人二级目录/ask/
httpd.ini规则如下
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule /ask/(.)$ $1/\?\/ [L]
RewriteRule ^(.)/topic/(.)$ $1/\?\/topic/$1 [L]
RewriteRule ^(.)/users/(.)$ $1/\?\/users/$1 [L]
RewriteRule ^(.)/favorite/(.)$ $1/\?\/favorite/$1 [L]
RewriteRule ^(.)/explore/(.)$ $1/\?\/explore/$1 [L]
RewriteRule ^(.)/notifications/(.)$ $1/\?\/notifications/$1 [L]
RewriteRule ^(.)/inbox/(.)$ $1/\?\/inbox/$1 [L]
RewriteRule ^(.)/people/(.)$ $1/\?\/people/$1 [L]
RewriteRule ^(.)/setting/(.)$ $1/\?\/setting/$1 [L]
RewriteRule ^(.)/logout/(.)$ $1/\?\/logout/$1 [L]
RewriteRule ^(.)/publish/(.)$ $1/\?\/publish/$1 [L]
RewriteRule ^(.)/feature/(.)$ $1/\?\/feature/$1 [L]
RewriteRule ^(.)/home/(.)$ $1/\?\/home/$1 [L]
RewriteRule ^(.)/account/(.)$ $1/\?\/account/$1 [L]
RewriteRule ^(.)/login/(.)$ $1/\?\/login/$1 [L]
RewriteRule ^(.)/reader/(.)$ $1/\?\/reader/$1 [L]
RewriteRule ^(.)/search/(.)$ $1/\?\/search/$1 [L]
RewriteRule ^(.)/crond/(.)$ $1/\?\/crond/$1 [L]
RewriteRule ^(.)/invitation/(.)$ $1/\?\/invitation/$1 [L]
RewriteRule ^(.)/admin/(\?(.))*$ $1/\?\/admin/$1 [L]
RewriteRule ^(.)/m/(.)$ $1/\?\/m/$1 [L]
RewriteRule ^(.)/question/(.)$ $1/\?\/question/$1 [L]
RewriteRule ^(.)/category/(.)$ $1/\?\/home/explore/category/$1 [L]
RewriteRule ^(.)/feed/(.)$ $1/\?\/feed/$1 [L]
RewriteRule ^(.)/first_(.)$ $1/\?\/first_(.)/$1 [L]
RewriteRule ^(.)/follow/(.)$ $1/\?\/follow/$1 [L]
RewriteRule ^(.)/weixin/(.)$ $1/\?\/weixin/$1 [L]
RewriteRule ^(.)/upgrade/(.)$ $1/\?\/upgrade/$1 [L]
RewriteRule ^(.)/article/(.)$ $1/\?\/article/$1 [L]
阅读全文
收起全文