diff --git a/conf/nginx.conf b/conf/nginx.conf index 90e7687..acd3d92 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,7 +7,10 @@ location / { #client_max_body_size 50M; - try_files $uri $uri/ @__NAME__; + location = /favicon.ico { access_log off; log_not_found off; } + location = /robots.txt { access_log off; log_not_found off; } + + try_files $uri $uri/ /index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; @@ -20,7 +23,3 @@ location / { fastcgi_param SCRIPT_FILENAME $request_filename; } } - -location @__NAME__ { - rewrite /(.*)$ /index.php?title=$1&$args; -}