apache伪静态规则能修改为IIS下用吗? 20
我有一个系统,伪静态规则只支持apache环境,但我用的是IIS环境,能转换吗?高手帮帮忙!apache规则如下:<FilesMatch"\.(bak|inc|lib|s...
我有一个系统,伪静态规则只支持apache环境,但我用的是IIS环境,能转换吗?高手帮帮忙!
apache规则如下:
<FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt)$">
order deny,allow
deny from all
</FilesMatch>
RewriteEngine On
#RewriteBase /
# direct one-word access
RewriteRule ^(article)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2&tid=$3 [QSA,L]
RewriteRule ^(special)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2&sid=$3 [QSA,L]
RewriteRule ^(article)_(read)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&did=$3 [QSA,L]
RewriteRule ^(form)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&fgid=$3 [QSA,L]
RewriteRule ^(forum)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2&btid=$3 [QSA,L]
RewriteRule ^(forum)_(read)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2&bid=$3 [QSA,L]
RewriteRule ^(forum)_(add)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&btid=$3 [QSA,L]
RewriteRule ^([a-zA-Z]+)_([a-zA-Z]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2 [QSA,L]
RewriteRule ^(public)_([a-zA-Z]+)_([\.0-9a-zA-Z]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&rd=$3 [QSA,L]
RewriteRule ^(order)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&did=$3 [QSA,L]
RewriteRule ^(ordermain)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2 [QSA,L]
RewriteRule ^(ordermain)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&oid=$3 [QSA,L]
RewriteRule ^(forummain)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2 [QSA,L]
RewriteRule ^(forummain)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&bid=$3 [QSA,L]
RewriteRule ^(enquiry)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&did=$3 [QSA,L]
RewriteRule ^(enquirymain)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2 [QSA,L]
RewriteRule ^(enquirymain)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&eid=$3 [QSA,L] 展开
apache规则如下:
<FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt)$">
order deny,allow
deny from all
</FilesMatch>
RewriteEngine On
#RewriteBase /
# direct one-word access
RewriteRule ^(article)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2&tid=$3 [QSA,L]
RewriteRule ^(special)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2&sid=$3 [QSA,L]
RewriteRule ^(article)_(read)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&did=$3 [QSA,L]
RewriteRule ^(form)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&fgid=$3 [QSA,L]
RewriteRule ^(forum)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2&btid=$3 [QSA,L]
RewriteRule ^(forum)_(read)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2&bid=$3 [QSA,L]
RewriteRule ^(forum)_(add)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&btid=$3 [QSA,L]
RewriteRule ^([a-zA-Z]+)_([a-zA-Z]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2 [QSA,L]
RewriteRule ^(public)_([a-zA-Z]+)_([\.0-9a-zA-Z]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&rd=$3 [QSA,L]
RewriteRule ^(order)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&did=$3 [QSA,L]
RewriteRule ^(ordermain)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2 [QSA,L]
RewriteRule ^(ordermain)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&oid=$3 [QSA,L]
RewriteRule ^(forummain)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2 [QSA,L]
RewriteRule ^(forummain)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&bid=$3 [QSA,L]
RewriteRule ^(enquiry)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&did=$3 [QSA,L]
RewriteRule ^(enquirymain)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ index\.php\?page=$4&ac=$1&at=$2 [QSA,L]
RewriteRule ^(enquirymain)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ index\.php\?ac=$1&at=$2&eid=$3 [QSA,L] 展开
1个回答
展开全部
iis可以使用重写组件,配置对应网站的CONFIG即可
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
Storm代理
2023-07-25 广告
2023-07-25 广告
StormProxies是一家提供动态代理服务器服务的企业,旨在帮助用户更好地管理网络访问和安全。以下是一些关于StormProxies的IP动态代理服务的特点:1. 高匿名性:StormProxies的动态代理服务器具有高匿名性,可以有效...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询