如果是搬家请确保两边环境相同,PHP版本相同、mysql版本相同
PHP7.2安装yaf扩展
修改配置文件 最下面填写 yaf.use_namespace=1
1.nginx下rewrite规则
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?$1 last;
}
}
2.apache下rewrite规则
#.htaccess, 当然也可以写在httpd.conf
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
修改对应的网站目录,以及取消防跨站攻击(open_basedir)