zoukankan      html  css  js  c++  java
  • apache-.htaccess

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ %{ENV:BASE}index.php [QSA,L]

    If requested URI does not indicate to any existing file then redirect to ${ENV:BASE}index.php.
    You can find description of RewriteRule flags here. Briefly speaking:
    QSA stands for "query string append". It means that query string will be appended to replacement URI.
    L means that is the last rule and no further rules will be processed.

    The %{ENV:variable} form of TestString in the RewriteCond allows mod_rewrite's rewrite engine to make decisions conditional on environment variables. Note that the variables accessible in mod_rewrite without the ENV: prefix are not actually environment variables. Rather, they are variables special to mod_rewrite which cannot be accessed from other modules.

  • 相关阅读:
    无废话XML--XML约束(DTD)
    无废话XML--XML细节
    XML,HTML,XHTML
    javabean内省
    反射应用--IOC和AOP
    JDK动态代理
    反射
    类加载机制
    linkin大话数据结构--泛型
    java异常处理
  • 原文地址:https://www.cnblogs.com/qike/p/5308252.html
Copyright © 2011-2022 走看看