我是CAKEPHP的新手。我从服务器复制了这些文件,并将其导入到localhost。css和图像未加载。我取消了对配置::write('App.baseUrl',env('SCRIPT_NAME'));现在网站正在显示,但url包括index.php.
1)从apache服务器打开"mod_rewrite"。
2) comment"配置::write('App.baseUrl',env('SCRIPT_NAME'));"此行来自/confige/core.php