Httpd.ini规则转.Htaccess

[ISAPI_Rewrite]#3600=1hourCacheClockRate3600RepeatLimit32#Protecthttpd.iniandhttpd.pa... [ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

RewriteRule ^(.*)list/(.+)-([0-9]+)\.html$ $1/list\.php\?id=$2&page=$3
RewriteRule ^(.*)list/(.+)\.html$ $1/list\.php\?id=$2

RewriteRule ^(.*)listb/(.+)-([0-9]+)\.html$ $1/listb\.php\?id=$2&page=$3
RewriteRule ^(.*)listb/(.+)\.html$ $1/listb\.php\?id=$2

RewriteRule ^(.*)content/(.+)\.html$ $1/article\.php\?id=$2

RewriteRule ^(.*)search/(.+)-([0-9]+)\.html$ $1/search\.php\?key=$2&page=$3
RewriteRule ^(.*)search/([^-]+)\.html$ $1/search\.php\?key=$2

RewriteRule ^(.*)search\.html\?key=(.*)$ $1/search\.php\?key=$2
RewriteRule ^(.*)searchs\.html\?key=(.*)$ $1/search\.php\?key=$2

RewriteRule ^(.*)tag-([^-]+)/(.*)-([0-9]+)\.html$ $1/tag\.php\?id=$2&key=$3&page=$4
RewriteRule ^(.*)tag-([^-]+)/(.*)\.html$ $1/tag\.php\?id=$2&key=$3

RewriteRule ^(.*)tagb-([^-]+)/(.*)-([0-9]+)\.html$ $1/tagb\.php\?id=$2&key=$3&page=$4
RewriteRule ^(.*)tagb-([^-]+)/(.*)\.html$ $1/tagb\.php\?id=$2&key=$3
展开
 我来答
newphp
2010-06-13 · TA获得超过176个赞
知道小有建树答主
回答量:100
采纳率:100%
帮助的人:159万
展开全部
RewriteEngine On
RewriteBase /

RewriteRule ^(.*)list/(.+)-([0-9]+)\.html$ $1/list.php?id=$2&page=$3
RewriteRule ^(.*)list/(.+)\.html$ $1/list.php?id=$2

RewriteRule ^(.*)listb/(.+)-([0-9]+)\.html$ $1/listb.php?id=$2&page=$3
RewriteRule ^(.*)listb/(.+)\.html$ $1/listb.php?id=$2

RewriteRule ^(.*)content/(.+)\.html$ $1/article.php?id=$2

RewriteRule ^(.*)search/(.+)-([0-9]+)\.html$ $1/search.php?key=$2&page=$3
RewriteRule ^(.*)search/([^-]+)\.html$ $1/search.php?key=$2

RewriteRule ^(.*)search\.html?key=(.*)$ $1/search.php?key=$2
RewriteRule ^(.*)searchs\.html?key=(.*)$ $1/search.php?key=$2

RewriteRule ^(.*)tag-([^-]+)/(.*)-([0-9]+)\.html$ $1/tag.php?id=$2&key=$3&page=$4
RewriteRule ^(.*)tag-([^-]+)/(.*)\.html$ $1/tag.php?id=$2&key=$3

RewriteRule ^(.*)tagb-([^-]+)/(.*)-([0-9]+)\.html$ $1/tagb.php?id=$2&key=$3&page=$4
RewriteRule ^(.*)tagb-([^-]+)/(.*)\.html$ $1/tagb.php?id=$2&key=$3
A60885262
2010-06-08 · TA获得超过495个赞
知道小有建树答主
回答量:855
采纳率:0%
帮助的人:318万
展开全部
消灭0回答
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式