ISAPI_Rrwrite 2.7下301跳转规则,名字是httpd.ini [ISAPI_Rewrite] CacheClockRate 3600 RepeatLimit 32 # Protect httpd.ini and httpd.parse.errors files # from accessing through HTTP # Rules to ensure that normal content gets through RewriteCond Host: ^ruiniweier\.COM$ RewriteRule (.*) http\://www\.ruiniweier\.COM$1 [I,RP] -------------------------------------------------------------------------------------------------------------------------------- [ISAPI_Rewrite] # 3600 = 1 hour CacheClockRate 3600 RepeatLimit 32 # Protect httpd.ini and httpd.parse.errors files # from accessing through HTTP # RewriteRule ^/httpd(?:\.ini|\.parse\.errors).* [F,I,O] RewriteEngine On RewriteCond %{HTTP_HOST} !^www.XXXX.com$ [NC] RewriteRule ^(.*)$ http://www.XXX.com/$1 [L,R=301] # For ISAPI_Rewrite 1.x [ISAPI_Rewrite] CacheClockRate 3600 RepeatLimit 32 RewriteCond Host: ^xxx.com$ RewriteRule (.*) http://www.xxx.com$1 [R,I] # For ISAPI_Rewrite 2.x RewriteCond Host: ^xxx.com$ RewriteRule (.*) http://www.xxx.com$1 [I,RP] # For ISAPI_Rewrite 3.x RewriteCond %{HTTP:Host} ^xxx.com$ RewriteRule (.*) http://www.xxx.com$1 [NC,R=301] #.htaccess RewriteCond %{HTTP:Host} ^htjsyljs.com$ RewriteRule (.*) http://www.htjsyljs.com/$1 [NC,R=301]