add alternate link

This commit is contained in:
Valentin CZERYBA 2023-02-28 11:03:42 +01:00
parent 79811d9fe5
commit 8219583961

View File

@ -4,8 +4,8 @@ server {
#gzip_static off;
server_name clarissariviere.com clarissariviere.fr www.clarissariviere.fr www.clarissariviere.com;
add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
add_header Link "<https://www.clarissariviere.com; rel=\"canonical\">";
proxy_cache STATIC;
add_header Link "<https://www.clarissariviere.com;> rel=\"canonical\", <https://www.clarissariviere.fr;> rel=\"alternate\" hreflang=\"fr\"";
proxy_cache STATIC;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
@ -27,7 +27,7 @@ server {
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header X-Forwarded-Proto $scheme;
sub_filter 'gouters.canalblog.com' "$host";
sub_filter '<meta name="generator" content="CanalBlog - https://www.canalblog.com" /> '';
sub_filter '<meta name="generator" content="CanalBlog - https://www.canalblog.com" />' '';
sub_filter_types text/html text/xml text/plain text/css;
sub_filter_once off;