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 展开
# 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 展开
2个回答
展开全部
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
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
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询