|
|
IIS 6.0 rewrite 3- # For ISAPI_Rewrite 3.x
- RewriteCond %{HTTP:Host} ^chenyu\.me$
- RewriteRule (.*) http\://www\.chenyu\.me/$1 [NC,R=301]
复制代码 或:下面的规则是所有二级域名前面都会加上www,如bbs.chenyu.me,它也会加www,变成www.chenyu.me- # For ISAPI_Rewrite 3.x
- RewriteCond %{HTTPS} (on)?
- RewriteCond %{HTTP:Host} ^(?!www\.)(chenyu\.me)$ [NC]
- RewriteCond %{REQUEST_URI} (.+)
- RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]
复制代码 |
|