forked from M-Labs/it-infra
Reduce websites duplication
Redirect www.* URLs to non-www.* with default 301 code in order to reduce number of copies of the websites in search engines Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
9558882e2b
commit
da74156ca8
@ -1044,9 +1044,17 @@ in
|
|||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
"m-labs.hk" = mainWebsite;
|
"m-labs.hk" = mainWebsite;
|
||||||
"www.m-labs.hk" = mainWebsite;
|
"www.m-labs.hk" = {
|
||||||
|
addSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
globalRedirect = "m-labs.hk";
|
||||||
|
};
|
||||||
"m-labs.ph" = mainWebsite;
|
"m-labs.ph" = mainWebsite;
|
||||||
"www.m-labs.ph" = mainWebsite;
|
"www.m-labs.ph" = {
|
||||||
|
addSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
globalRedirect = "m-labs.ph";
|
||||||
|
};
|
||||||
"nixbld.m-labs.hk" = {
|
"nixbld.m-labs.hk" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
@ -1193,7 +1201,7 @@ in
|
|||||||
"www.193thz.com" = {
|
"www.193thz.com" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
root = "/var/www/193thz";
|
globalRedirect = "193thz.com";
|
||||||
};
|
};
|
||||||
"nmigen.net" = {
|
"nmigen.net" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
@ -1203,7 +1211,7 @@ in
|
|||||||
"www.nmigen.net" = {
|
"www.nmigen.net" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
root = "${hydraWwwOutputs}/nmigen-docs";
|
globalRedirect = "nmigen.net";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user