У меня есть приложение cakephp, работающее на локальном сервере (Ampps для Mac).Когда я набираю URL в навигаторе, я не вижу загруженных файлов CSS и JS.Когда я проверяю консоль, я нахожу эти ошибки:
Failed to load resource: the server responded with a status of 404 (Not Found)
/app/webroot/files/masque_maroc.geojson:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/maps/display_time_filter_box:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/maps/display_filter_box:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/maps/get_data:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/maps/categories_menu:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/maps/mobile_categories_menu:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Я провел некоторые исследования и обнаружил, что мне нужно отредактировать файлы .htaccess в папках / app и Applications / AMPPS / www / carte_drin, я такжедобавил еще один прямо в папку www.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Applications/AMPPS/www/carte_drin/app
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/(app/webroot/)?(img|css|js)/(.*)$
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
И все же ошибка все еще там
Некоторые говорят, что мне нужно удалить все файлы .htaccess и раскомментировать
Configure::write('App.baseUrl', env('SCRIPT_NAME'));
из app / config / core.php пока что нет ошибок Я не знаю, что мне не хватает.Ваша помощь была бы очень благодарна!