About Mac MAMP PRO deploy thinkphp5.1 access 404
2018-12-12 13:28:11
0
3
1382

About Mac MAMP PRO deployment thinkphp5.1 access 404
Home page access is normal, other directory access 404 Configuration is as follows:

4.png


5.png1.png2.png3.png

reply all(1)
ringa_lee
if (!-e $request_filename) {
   rewrite ^/(.*)$ /index.php?s=/ last;
   break;
}

You have the wrong configuration here, rewrite ^/(.*)$ /index.php?s=/$1 last;

Change to: rewrite ^/(.*)$ / index.php/$1 last; try

  • reply After modification, it can’t be started.
    author 2018-12-12 13:46:17
  • reply There should be an error message, take a look
    ringa_lee author 2018-12-12 13:52:48
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template