2024年6月11日发(作者:)
endif
match URL into $ with ^(.*)-htm-(.*)$
if matched then
set URL = $?$2
endif
match URL into $ with ^(.*)/show-([0-9]+)([-])?([0-9]+)?.html$
if matched then
set URL = $1/?itemid=$2&page=$4
endif
match URL into $ with ^(.*)/list-([0-9]+)([-])?([0-9]+)?.html$
if matched then
set URL = $1/?catid=$2&page=$4
endif
match URL into $ with ^(.*)/show/([0-9]+)/([0-9]+)?([/])?$
if matched then
set URL = $1/?itemid=$2&page=$3
endif
match URL into $ with ^(.*)/list/([0-9]+)/([0-9]+)?([/])?$
if matched then
set URL = $1/?catid=$2&page=$3
endif
match URL into $ with ^(.*)/([A-za-z0-9_-]+)-c([0-9]+)-([0-9]+).html$
if matched then
set URL = $1/?catid=$3&page=$4
endif
match URL into $ with ^(.*)/([a-z]+)/(.*).shtml$
if matched then
set URL = $1/$2/?rewrite=$3
endif
match URL into $ with ^(.*)/com/([a-z0-9_-]+)/([a-z]+)/(.*).html$
if matched then
set URL = $1/?homepage=$2&file=$3&rewrite=$4
endif
match URL into $ with ^(.*)/com/([a-z0-9_-]+)/([a-z]+)([/])?$
if matched then
set URL = $1/?homepage=$2&file=$3
endif
match URL into $ with ^(.*)/com/([a-z0-9_-]+)([/])?$
if matched then
set URL = $1/?homepage=$2
endif
5、IIS6服务器
[ISAPI_Rewrite]
# Destoon B2B
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect and files
# from accessing through HTTP
RewriteRule ^(.*).(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /
RewriteRule ^(.*)/file/(.*).php(.*)$ /
RewriteRule ^(.*)-htm-(.*)$ $?$2
RewriteRule ^(.*)/show-([0-9]+)([-])?([0-9]+)?.html$ $1/?itemid=$2&page=$4
RewriteRule ^(.*)/list-([0-9]+)([-])?([0-9]+)?.html$ $1/?catid=$2&page=$4
RewriteRule ^(.*)/show/([0-9]+)/([0-9]+)?([/])?$ $1/?itemid=$2&page=$3
RewriteRule ^(.*)/list/([0-9]+)/([0-9]+)?([/])?$ $1/?catid=$2&page=$3
RewriteRule ^(.*)/([A-za-z0-9_-]+)-c([0-9]+)-([0-9]+).html$ $1/?catid=$3&page=$4
RewriteRule ^(.*)/com/([a-z0-9_-]+)/([a-z]+)/(.*).html$ $1/?homepage=$2&file=$3&rewrite=$4
RewriteRule ^(.*)/com/([a-z0-9_-]+)/([a-z]+)([/])?$ $1/?homepage=$2&file=$3
RewriteRule ^(.*)/com/([a-z0-9_-]+)([/])?$ $1/?homepage=$2
RewriteRule ^(.*)/([a-z]+)/(.*).shtml$ $1/$2/?rewrite=$3
6、IIS7服务器
发布评论