1. 程式人生 > >tp3.2中index.php配置.htaccess後無法去掉index.php的解決方案

tp3.2中index.php配置.htaccess後無法去掉index.php的解決方案

rewrite inf path php access acc tp3.2 php配置 index.php

tp3.2.3在php5.6版本和版本以上的確會出現不能隱藏index.php
大多數夥伴只看文檔裏面提供的方法產生了誤導。官方文檔中.htaccess裏面RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]在php5.6以下有用。要是php5.6或者php5.6以上就得改為RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]方能有效

tp3.2中index.php配置.htaccess後無法去掉index.php的解決方案