小兔网

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

tp5如何隐藏index.php

推荐教程:《thinkphp框架

tp5隐藏index.php

目录

//pullic/static/.htaccess

文件内容如下

<IfModule mod_rewrite.c>Options +FollowSymlinksRewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)index.php?s =1 [QSA,PT,L]</IfModule>

以上就是tp5如何隐藏index.php的知识。速戳>>知识兔学习精品课!