ECSHOP站内页面跳转,避免死链

2.x版本域名重定向:

  1. # For ISAPI_Rewrite 2.x
  2. RewriteCond Host: ^steveluo\.name$
  3. RewriteRule (.*) http\://www\.steveluo\.name$1 [I,RP]

3.x版本域名重定向:

  1. # For ISAPI_Rewrite 3.x
  2. RewriteCond %{HTTP:Host} ^steveluo\.name$
  3. 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]
posted @ 2014-09-28 15:52  做个好男人  阅读(1615)  评论(0编辑  收藏  举报