2.x版本域名重定向:
- # For ISAPI_Rewrite 2.x
- RewriteCond Host: ^steveluo.name$
- RewriteRule (.*) http://www.steveluo.name$1 [I,RP]
3.x版本域名重定向:
- # For ISAPI_Rewrite 3.x
- RewriteCond %{HTTP:Host} ^steveluo.name$
- RewriteRule (.*) http://www.steveluo.name$1 [NC,R=301]
SEO 需要 大写字符301跳小写过程
#Scenery
RewriteRule /Scenery/ /scenery/ [N,RP]
RewriteRule /Scenery/ /Scenery/index.aspx [N,I]
用于ecshop站内页面跳转,避免死链
例如:
httpd.ini
RewriteRule ^(.*)/gallery-107--0--1--text.html$ $1/category-108-b0-min0-max0-attr0.0.11012.html [N,I]
.htaccess
RewriteRule ^product-1054.html goods-1208.html [R=301,L]