سؤال

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.

هل كانت مفيدة؟

المحلول

1) open " mod_rewrite " from apache server.

2) comment " Configure::write('App.baseUrl', env('SCRIPT_NAME')); " this line from /confige/core.php

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top