<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>thinkphp5隐藏index.php
可以直接访问localhost/index/index/index
本文介绍了一种 ThinkPHP 5 中用于隐藏 index.php 的 URL 重写配置方法。通过设置 .htaccess 文件中的 mod_rewrite 模块选项,并使用 RewriteRule 来实现直接访问 localhost/index/index/index 而非 localhost/index.php?/index/index/index 的功能。
3978

被折叠的 条评论
为什么被折叠?



