client_max_body_size 10m;
location / {
- index index.html index.htm index.php;
- }
+ try_files $uri $uri/ @rewrite;
+}
+
+location @rewrite {
+ rewrite ^/(.*)$ /index.php?title=$1&$args;
+}
+
location ~ \.php$ {
include /etc/nginx/conf.d/fastcgi.conf;
fastcgi_index index.php ;