求ISAPI_Rewrite规则编写
1、把index.asp转化成index.html(或者把所有后缀.asp的转换为.html)2、把show.asp?id=a1转行为show_id_a1.html3、把...
1、把index.asp 转化成 index.html (或者把所有后缀.asp的转换为.html)
2、把show.asp?id=a1转行为show_id_a1.html
3、把show.asp?id=a1&page=b2 转换为show_id_a1_page_b2.html 展开
2、把show.asp?id=a1转行为show_id_a1.html
3、把show.asp?id=a1&page=b2 转换为show_id_a1_page_b2.html 展开
2个回答
展开全部
把index.asp 转化成 index.html (或者把所有后缀.asp的转换为.html):
RewriteRule ^/(.*).html /$1.asp
2、把show.asp?id=a1转行为show_id_a1.html:
RewriteRule ^/show_id_(.*).html /show.asp?id=$1
3、把show.asp?id=a1&page=b2 转换为show_id_a1_page_b2.html
RewriteRule ^/show_id_(.*)_page_(.*).html /show.asp?id=$1&page=$2
规则是正则表达式规则,看看正则表达式语法就成了,希望能帮到您!
RewriteRule ^/(.*).html /$1.asp
2、把show.asp?id=a1转行为show_id_a1.html:
RewriteRule ^/show_id_(.*).html /show.asp?id=$1
3、把show.asp?id=a1&page=b2 转换为show_id_a1_page_b2.html
RewriteRule ^/show_id_(.*)_page_(.*).html /show.asp?id=$1&page=$2
规则是正则表达式规则,看看正则表达式语法就成了,希望能帮到您!
2011-05-06
展开全部
RewriteEngine on
RewriteBase /
RewriteRule annel/(.*) channel.php?channel=$1
RewriteRule annel/(.*) pe/(.*)/classid/(.*)/id/(.*)\.html article?channel=$1&type=$2&classid=$3&id=$4
RewriteRule annel/(.*) pe/(.*) list.php?channel=$1&type=$2
RewriteRule annel/(.*) pe/(.*)/classid/(.*)/page/(.*)\.html list.php?channel=$1&type=$2&classid=$3&page=$4
RewriteRule /mid/(.*)\.html listinfo.php?mid=$1
RewriteRule /enews/(.*)/mid/(.*)\.html addinfo.php?enews=$1&mid=$2
另外,虚机团上产品团购,超级便宜
RewriteBase /
RewriteRule annel/(.*) channel.php?channel=$1
RewriteRule annel/(.*) pe/(.*)/classid/(.*)/id/(.*)\.html article?channel=$1&type=$2&classid=$3&id=$4
RewriteRule annel/(.*) pe/(.*) list.php?channel=$1&type=$2
RewriteRule annel/(.*) pe/(.*)/classid/(.*)/page/(.*)\.html list.php?channel=$1&type=$2&classid=$3&page=$4
RewriteRule /mid/(.*)\.html listinfo.php?mid=$1
RewriteRule /enews/(.*)/mid/(.*)\.html addinfo.php?enews=$1&mid=$2
另外,虚机团上产品团购,超级便宜
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询