Fix dynamic robots.txt file

This commit is contained in:
Ashley Rich 2017-08-20 16:32:45 -03:00
parent 1530e8c2be
commit 39093b1486
6 changed files with 18 additions and 0 deletions

View File

@ -51,6 +51,9 @@ server {
fastcgi_cache_valid 60m;
}
# Rewrite robots.txt
rewrite ^/robots.txt$ /index.php last;
# Uncomment if using the fastcgi_cache_purge module and Nginx Helper plugin (https://wordpress.org/plugins/nginx-helper/)
# location ~ /purge(/.*) {
# fastcgi_cache_purge fastcgi-cache.com "$scheme$request_method$host$1";

View File

@ -35,6 +35,9 @@ server {
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
}
# Rewrite robots.txt
rewrite ^/robots.txt$ /index.php last;
}
# Redirect www to non-www

View File

@ -32,6 +32,9 @@ server {
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
}
# Rewrite robots.txt
rewrite ^/robots.txt$ /index.php last;
}
# Redirect www to non-www

View File

@ -32,6 +32,9 @@ server {
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
}
# Rewrite robots.txt
rewrite ^/robots.txt$ /index.php last;
}
# Redirect www to non-www

View File

@ -58,6 +58,9 @@ server {
fastcgi_cache_valid 60m;
}
# Rewrite robots.txt
rewrite ^/robots.txt$ /index.php last;
# Uncomment if using the fastcgi_cache_purge module and Nginx Helper plugin (https://wordpress.org/plugins/nginx-helper/)
# location ~ /purge(/.*) {
# fastcgi_cache_purge ssl-fastcgi-cache.com "$scheme$request_method$host$1";

View File

@ -39,6 +39,9 @@ server {
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
}
# Rewrite robots.txt
rewrite ^/robots.txt$ /index.php last;
}
# Redirect http to https