sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION 加到my.ini里后重启!
nigix: if ( !-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}//隐藏入口文件
Apache: <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>
来源:oschina
链接:https://my.oschina.net/u/4225107/blog/3290868