<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
</IfModule>
别忘了apache中httpd.conf配置文件中加载mod_rewrite.so模块,并将AllowOverride None 的None改为 All
thinkphp中index.php隐藏后非默认的操作方法出现No input file specified
原文:https://www.cnblogs.com/dayudarou/p/11565726.html