当前位置:Gxlcms > 数据库问题 > tp3.2中index.php配置.htaccess后无法去掉index.php的解决方案

tp3.2中index.php配置.htaccess后无法去掉index.php的解决方案

时间:2021-07-01 10:21:17 帮助过:60人阅读

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的解决方案

标签:2.3   无法   iter   去掉   pat   write   解决   方案   文档   

人气教程排行