Fix dynamic robots.txt file
This commit is contained in:
parent
1530e8c2be
commit
39093b1486
@ -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";
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user