add redirect www.clarissariviere.fr
This commit is contained in:
parent
42cd55258c
commit
cbb57b8493
@ -1,16 +1,15 @@
|
||||
server {
|
||||
if ($host = clarissariviere.fr) {
|
||||
return 301 https://"www.clarissariviere.fr"$request_uri;
|
||||
return 301 "https://www.clarissariviere.com$request_uri";
|
||||
} # managed by Certbot
|
||||
if ($host = www.clarissariviere.fr) {
|
||||
return 301 "https://www.clarissariviere.com$request_uri";
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
if ($host = clarissariviere.com) {
|
||||
return 301 https://"www.clarissariviere.com"$request_uri;
|
||||
return 301 "https://www.clarissariviere.com$request_uri";
|
||||
} # managed by Certbot
|
||||
set $link 'canonical';
|
||||
if ($host = www.clarissariviere.fr) {
|
||||
set $link "alternate\" hreflang=\"fr";
|
||||
}
|
||||
access_log /var/log/nginx/clarissa_access.log main;
|
||||
error_log /var/log/nginx/clarissa_error.log;
|
||||
#gzip_static off;
|
||||
@ -18,9 +17,9 @@ server {
|
||||
add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
|
||||
#add_header Link "<https://www.clarissariviere.com$request_uri;> rel=\"canonical\", <https://www.clarissariviere.fr$request_uri;> rel=\"alternate\" hreflang=\"fr\"";
|
||||
proxy_cache STATIC;
|
||||
set $header "<https://www.clarissariviere.com$request_uri;> rel=\"canonical\", <https://www.clarissariviere.fr$request_uri;> rel=\"alternate\" hreflang=\"fr\"";
|
||||
set $header "<https://$host$request_uri;> rel=\"canonical\"";
|
||||
if ($request_uri ~ "/tag/") {
|
||||
set $header "<https://www.clarissariviere.com;> rel=\"canonical\", <https://www.clarissariviere.fr;> rel=\"alternate\" hreflang=\"fr\"";
|
||||
set $header "<https://$host;> rel=\"canonical\"";
|
||||
set $link "";
|
||||
|
||||
}
|
||||
@ -46,7 +45,6 @@ server {
|
||||
#proxy_set_header X-Real-IP $remote_addr;
|
||||
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
#proxy_set_header X-Forwarded-Proto $scheme;
|
||||
sub_filter 'canonical' "$link";
|
||||
sub_filter 'http://gouters.canalblog.com' "https://$host";
|
||||
sub_filter '<meta name="generator" content="CanalBlog - https://www.canalblog.com" />' '';
|
||||
sub_filter '<meta name="Keywords" content="' '<meta name="Keywords" content="clarissa, riviere, ';
|
||||
|
Loading…
x
Reference in New Issue
Block a user