tp5隐藏index.php的方法:首先打开“pullic/static/.htaccess”目录;然后修改内容为“RewriteRule ^(.*)index.php?s =1 [QSA,PT,L]”;最后保存文件即可。 推荐教程:《thinkphp框架》 tp5隐藏index.php 目录
tp5隐藏index.php的方法:首先打开“pullic/static/.htaccess”目录;然后修改内容为“RewriteRule ^(.*)index.php?s =1 [QSA,PT,L]”;最后保存文件即可。

推荐教程:《thinkphp框架》
tp5隐藏index.php
目录
//pullic/static/.htaccess
文件内容如下
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)index.php?s =1 [QSA,PT,L]
</IfModule>以上就是tp5如何隐藏index.php的详细内容,更多请关注自由互联其它相关文章!
