[提问]
求教IIS7 下,web.config伪静态规则如何写
|
|
有用godaddy win主机的吗?求教IIS7 下,web.config伪静态规则如何写
有知道怎么转的也行
.htaccess转成web.config
<IfModule mod_rewrite.c>
# 将 RewriteEngine 模式打开
RewriteEngine On
RewriteBase /
# Rewrite 系统规则请勿修改
RewriteRule ^index\.html$ index.php
RewriteRule ^home.html$ home.php
RewriteRule ^list-([0-9]+)-([0-9]+)\.html$ list.php?id=$1&pageid=$2
RewriteRule ^msg-([0-9]+)\.html$ msg.php?id=$1
RewriteRule ^msg-([0-9]+)-([0-9]+)\.html$ msg.php?id=$1&pageid=$2
RewriteRule ^special-([0-9]+)\.html$ special.php?id=$1
RewriteRule ^special-([0-9]+)-([0-9]+)\.html$ special.php?id=$1&pageid=$2
RewriteRule ^book-(add|list)-([0-9]+)\.html$ book.php?act=$1&pageid=$2
# 增加一个带有ID的留言URL规则
RewriteRule ^book-(add|list)-([0-9]+)-id([0-9]+)\.html$ book.php?act=$1&pageid=$2&id=$3
</IfModule> |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2011-2-25 10:25:50
|
显示全部楼层
|
|
|
|
|
|
|
|