【问题标题】:add a string in htaccess based on a string value根据字符串值在 htaccess 中添加字符串
【发布时间】:2012-10-09 02:29:59
【问题描述】:

【问题讨论】:

    标签: .htaccess


    【解决方案1】:

    应该这样做。

    # Turn on URL rewriting
    RewriteEngine On
    
    # Installation directory
    RewriteBase /
    
    # Allow any files or directories that exist to be displayed directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    # Rewrite all other URLs to index.php/URL
    RewriteRule ^(.*)$ index.php?$1 [PT,L]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-23
      • 2018-12-05
      • 1970-01-01
      • 2011-04-29
      • 2019-12-23
      • 2021-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多