找到原因了。忘记放在public目录下了。失误失误
------------------------------------------------------------------------
在php7+apache环境下怎么隐藏index.php
写了.htaccess文件了不起作用。
<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>环境是用的phpstudy php版本:php7.0.12
在php5.6下也不可以,
php5.5就可以。
最佳答案