复制public下的index.php和htaccess文件到根目录
index.php文件直接引入public/index,php即可
htaccess文件需要修改
/*
author:咔咔
wechat:fangkangfk
*/
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
</IfModule>