tp5.0虚拟机apache配置
.htaccess
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L] </IfModule>
重点:Options +FollowSymlinks -Multiviews
参考文章:
https://blog.csdn.net/wanganji5252/article/details/81293082