zoukankan      html  css  js  c++  java
  • 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]
  • 相关阅读:
    输出三角行
    练习
    循环
    阶乘
    常量、变量、数据类型 搞错N+1次 累死
    UTF-8
    数据库事务
    Jsp的使用
    Cookie和Session
    请求转发和重定向
  • 原文地址:https://www.cnblogs.com/shangxia/p/3998415.html
Copyright © 2011-2022 走看看