apache下的伪静态如何转换成iis下的伪静态

cnaaa8 2012-11-18 09:57:20
apache下的伪静态如何转换成iis下的伪静态?因为apache是.htaccess 而iis是httpd.ini 如果直接改文件名的话,并不行,如下面的apache下的伪静态代码?(请说下转换方法)


# Destoon B2B Rewrite Rules
RewriteEngine On
RewriteRule list-(\d+)\.html$ index\.php\?c=list&m=index&parent_cid=$1
RewriteRule list-(\d+)-(\d+)\.html$ index\.php\?c=list&m=index&parent_cid=$1&page=$2


RewriteRule list-(\d+)-(\d+)-(\d+)\.html$ index\.php\?c=list&m=index&parent_cid=$1&sort=$2&page=$3
RewriteRule list-(\d+)-(\d+)\.html$ index\.php\?c=list&m=index&parent_cid=$1&sort=$2

RewriteRule show-(\d+)\.html$ index\.php\?c=show&m=index&num_iids=$1

RewriteRule images\/([a-zA-Z\d=]+)\.jpg go.php
...全文
613 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
googlg 2013-07-09
  • 打赏
  • 举报
回复
apache 下用 httpd.conf 文件 也行,,,也有用 .htaccess 文件的,实在是搞不懂。
dz215136304 2013-01-11
  • 打赏
  • 举报
回复
百度下吧百度下吧
mrh111 2012-11-18
  • 打赏
  • 举报
回复
我也要请教这个问题。。。。。 apache 规则如下: Options All -Indexes DirectoryIndex index.html index.php <IfModule mod_rewrite.c> RewriteEngine on RewriteBase /cqxr RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(visit|im|min|robots\.txt) RewriteRule ^(.*)$ index.php/$1 [QSA,L] </IfModule>

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧