search

Home  >  Q&A  >  body text

About Mac MAMP PRO deploy thinkphp5.1 access 404

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

2208 days ago1393

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2018-12-12 13:36:26

    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
    0
  • After modification, it can’t be started.

    · 2018-12-12 13:46:17
    ringa_lee

    There should be an error message, take a look

    ringa_lee · 2018-12-12 13:52:48
  • Cancelreply