diff --git a/default.conf b/default.conf index dccf1cd..607eeae 100644 --- a/default.conf +++ b/default.conf @@ -8,6 +8,12 @@ server { root /var/www/html/public; index index.php index.html index.htm index.nginx-debian.html; + location / { + if (!-e $request_filename){ + rewrite ^(.*)$ /index.php?s=$1 last; break; + } + } + location / { try_files $uri $uri/ =404; }