MetInfo(米拓)升级到5.3版本默认伪静态规则,在UPUPW Kangle套件下无法正常使用
因为Kangle可以使用Apache的.htacess文件,所以Kangle可以完全支持Apache的伪静态规则
这样就比较好办了
只要对其原始规则进行一定的修改,即可解决问题
那么先看一下原始规则,这是在子目录mt下安装米拓后生成的默认规则:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule /mt/index-([a-zA-Z0-9_^\x00-\xff]+).html
/mt/index.php\?lang=$1&pseudo_jump=1
RewriteRule
/mt/([a-zA-Z0-9_^\x00-\xff]+)/list-([a-zA-Z0-9_^\x00-\xff]+)-([a-zA-Z0-9_^\x00-\xff]+).html
/mt/$1/index.php\?lang=$3&metid=$2&list=1&pseudo_jump=1
RewriteRule
/mt/([a-zA-Z0-9_^\x00-\xff]+)/list-([a-zA-Z0-9_^\x00-\xff]+)-([0-9_]+)-([a-zA-Z0-9_^\x00-\xff]+).html
/mt/$1/index.php\?lang=$4&metid=$2&list=1&page=$3&pseudo_jump=1
RewriteRule
/mt/([a-zA-Z0-9_^\x00-\xff]+)/jobcv-([a-zA-Z0-9_^\x00-\xff]+)-([a-zA-Z0-9_^\x00-\xff]+).html
/mt/$1/cv.php\?lang=$3&selectedjob=$2&pseudo_jump=1
RewriteRule
/mt/([a-zA-Z0-9_^\x00-\xff]+)/product-list-([a-zA-Z0-9_^\x00-\xff]+).html
/mt/$1/product.php\?lang=$2&pseudo_jump=1
RewriteRule
/mt/([a-zA-Z0-9_^\x00-\xff]+)/img-list-([a-zA-Z0-9_^\x00-\xff]+).html
/mt/$1/img.php\?lang=$2&pseudo_jump=1
RewriteRule
/mt/([a-zA-Z0-9_^\x00-\xff]+)/([a-zA-Z0-9_^\x00-\xff^\x00-\xff]+)-([a-zA-Z0-9_^\x00-\xff]+).html
/mt/$1/index.php\?lang=$3&metid=$2&pseudo_jump=1
RewriteRule /mt/tag/([\s\S]+)-([a-zA-Z0-9_^\x00-\xff]+)
/mt/search/search.php\?class1=&class2=&class3=&searchtype=0&searchword=$1&lang=$2
针对这个规则,需要改成适用性较广的Apache规则,那么只需要修改为:
规则下载:链接
效果演示:
安装在mt子目录:
安装在主目录: