1) open " mod_rewrite " from apache server.
2) comment " Configure::write('App.baseUrl', env('SCRIPT_NAME')); " this line from /confige/core.php
Question
I'm new to CAKEPHP . I copied the files from the server and imported to localhost. The css and images didnt loaded. I uncommented the Configure::write(‘App.baseUrl’, env(‘SCRIPT_NAME’)); and now website is displaying but the url includes index.php.
Solution
1) open " mod_rewrite " from apache server.
2) comment " Configure::write('App.baseUrl', env('SCRIPT_NAME')); " this line from /confige/core.php