I installed DevTools, enabled webtools and generated a new project. .htaccess is also generated, but I can not use it as it is because it is nginx + php-fpm. So I used the server settings as follows.

server {
    location / {
        index   index.html index.php;
        if (!-e $request_filename){
          rewrite ^(.*)$ /index.php?_url=$1 last;
        }
    }
}

Previously it was possible to transition without problems, but now the project side page is displayed. I think I could display the required page because the link destination was like "webtools.php? _url =/info" in the previous version.

I can not use webtools because I can not transition, so I changed the setting of nginx as follows.

    location / {
        index   index.html index.php;
        if (!-e $request_filename){
          rewrite ^/webtools.php(.*)$ /webtools.php?_url=$1 last;
          rewrite ^(.*)$ /index.php?_url=$1 last;
        }
    }

I'd like it to be the same as before, but is my setting wrong?

  • nginx 1.14.1
  • PHP 7.4.6
  • Phalcon DevTools 4.0.3
  • Phalcon 4.0.6
  • AdminLTE 2.3.6