Browse Source

fix for robots.txt location

Allow wordpress to generate robots.txt file if static file does not exist
next
pjv 10 years ago
parent
commit
40ccf765e5
  1. 5
      config/nginx/common/locations.conf

5
config/nginx/common/locations.conf

@ -9,8 +9,9 @@ location = /favicon.ico {
} }
location = /robots.txt { location = /robots.txt {
access_log off; try_files $uri $uri/ /index.php?$args;
log_not_found off; access_log off;
log_not_found off;
} }
# Cache static files # Cache static files

Loading…
Cancel
Save