分享

写回答

发帖

[提问] 谁的服务器有rewite 帮我把.htaccess转换成web.config伪静态

GoDaddy GoDaddy 1376 人阅读 | 0 人回复

发表于 2011-3-2 17:40:33 | 显示全部楼层 |阅读模式

谁的服务器有rewite 帮我把.htaccess转换成web.config伪静态

RewriteEngine On
# RewriteBase /
# haodian8 Rewrite Rules
RewriteRule ^(.*)group/list/([0-9]+)-?([0-9]*)-?([0-9]*).html$ $1/grouplist.php\?pid=$2&cid=$3&page=$4 [NC,L]
RewriteRule ^(.*)group/topic/([0-9]+).html$ $1/grouptopic.php\?id=$2 [NC,L]
RewriteRule ^(.*)member/([0-9]+).html$ $1/groupmember.php\?id=$2 [NC,L]
RewriteRule ^(.*)-cid-([0-9]+)-sp-([0-9]+)-ep-([0-9]+)-sort-(.*)-area-(.*)-q-(.*)-liebiao-([0-9]?)-([0-9]+).html$ $1.php\?cid=$2&sp=$3&ep=$4&sort=$5&area=$6&q=$7&liebiao=$8&page=$9 [NC,L]
RewriteRule ^(.*)view-(.*).html$ $1/view.php\?num_iid=$2 [NC,L]
RewriteRule ^(.*)search-(.*)-([0-9]+)-([0-9]+).html$ $1/search.php\?q=$2&cid=$3&page=$4 [NC,L]
RewriteRule ^(.*)shop-(.*)-([0-9]+).html$ $1/shop.php\?nick=$2&page=$3 [NC,L]
RewriteRule ^(.*)-([0-9]+)-([0-9]+).html$ $1.php\?cid=$2&page=$3 [NC,L]

ErrorDocument 404 /notfound.php


设置成 web.config格式的


万分感谢 谁来帮帮我
您需要登录后才可以回帖 登录 | 注册

本版积分规则