fix gouter reverse
This commit is contained in:
parent
59c2b26213
commit
4c433bfde8
@ -18,14 +18,15 @@ 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;
|
||||
location / {
|
||||
set $header "<https://www.clarissariviere.com$request_uri;> rel=\"canonical\", <https://www.clarissariviere.fr$request_uri;> rel=\"alternate\" hreflang=\"fr\"";
|
||||
if ($request_uri ~ "/tag/") {
|
||||
set $header "<https://www.clarissariviere.com;> rel=\"canonical\", <https://www.clarissariviere.fr;> rel=\"alternate\" hreflang=\"fr\"";
|
||||
set $link "";
|
||||
set $header "<https://www.clarissariviere.com$request_uri;> rel=\"canonical\", <https://www.clarissariviere.fr$request_uri;> rel=\"alternate\" hreflang=\"fr\"";
|
||||
if ($request_uri ~ "/tag/") {
|
||||
set $header "<https://www.clarissariviere.com;> rel=\"canonical\", <https://www.clarissariviere.fr;> rel=\"alternate\" hreflang=\"fr\"";
|
||||
set $link "";
|
||||
|
||||
}
|
||||
add_header Link $header;
|
||||
}
|
||||
add_header Link $header;
|
||||
|
||||
location / {
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to displaying a 404.
|
||||
#try_files $uri $uri/ =404;
|
||||
|
Loading…
x
Reference in New Issue
Block a user