php - How to setup F3 .htaccess with MAMP on Mac? -


i switched os windows mac , having problem running locally. installed mamp under /applications/mamp.

/applications/mamp/htdocs/.htaccess file:

rewriteengine on rewritebase /abc/  # skip files , directories rewrite rules below rewritecond %{request_filename} -l [or] rewritecond %{request_filename} -f [or] rewritecond %{request_filename} -d rewriterule ^ - [l]  rewriterule (.+\.(?:gif|png|jpe?g|css|js|woff|ttf))$ /abc/$1 [nc,l] rewriterule .* /abc/index.php [l] 

this worked on windows environment loads of resources , throws following error:

not found (404) - http 404 (get /index.php)  array(1) { [0]=>   array(6) {     ["file"]=>     string(42) "/applications/mamp/htdocs/abc/index.php"     ["line"]=>     int(27)     ["function"]=>     string(3) "run"     ["class"]=>     string(4) "base"     ["type"]=>     string(5) "->"     ["args"]=>     array(0) {     }   } } 

my network shows trying localhost:8888/abc/index.php receiving 404, though correct path.

i error .htaccess file because images , fonts loading correctly.

translating comments answer.

looks error due fact index.php not loading default folder. need place line @ top of .htaccess.

directoryindex index.php 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -