panique / mini

Just an extremely simple naked PHP application, useful for small projects and quick prototypes. Some might call it a micro framework :)
1.35k stars 478 forks source link

Nginx conf with $_GET params #248

Open thisaurel opened 5 years ago

thisaurel commented 5 years ago

I noticed that if we try to set $_GET parameters, the configuration will have to be as follows to work:

location / {
    try_files $uri $uri/ /index.php?url=$uri;        
    if ($args) {
        rewrite ^/(.+)$ /index.php?url=$1 last;
    }
}

Otherwise the framework does not take into account the parameters you pass, but only "url".