thinkphp 5.0 部署新网空间隐藏index.php入口

在应用入口文件同级目录添加或者修改.htaccess文件,另外此配置需要mod_rewrite.so模块支持

原代码:
<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>

修改: 
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
为:
 RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
原文地址:https://www.cnblogs.com/fogwang/p/11841564.html