注:本教程适用IIS版本,把以下内容复制到Rewrite/httpd.ini , 把红色部份更改至您的域名即可。
[ISAPI_Rewrite]# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files# from accessing through HTTPRewriteCond Host: ^xmisp\.com$RewriteRule (.*) http\://www\.xmisp\.com$1 [R,I]RewriteRule ^/(. ).(html)$ /index\.php\?$1\.html [L]RewriteRule ^/(. ).(xml)$ /index\.php\?$1\.xml [L]访问效果xmisp.com 跳转www.xmisp.com