0

I try to configure the "lando" tool with a nginx server on a Symfony 4.4 project.

But I have a problem, all URLs are not working For example :

How can I fix the concern, I have tried several rewrite conditions, but none of them work.

The current configuration below

location / {
        try_files $uri @rewriteapp;
    }

    location @rewriteapp {
        rewrite ^(.*)$ /index.php/$1 last;
    }

    location ~ ^/index.php(/|$) {
        include fastcgi_params;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTPS off;
    }

Thank for your help !

0 Answers0