From 4d43d9e8f6506ff6063eadca0e4a9d70acb07932 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Mon, 30 Oct 2023 23:02:14 +0100 Subject: [PATCH] Fix redirect --- terraform/domains.tf | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/terraform/domains.tf b/terraform/domains.tf index 8840a64..5b7f59a 100644 --- a/terraform/domains.tf +++ b/terraform/domains.tf @@ -126,18 +126,18 @@ resource "inwx_nameserver_record" "twomartens_eu_soa" { // redirect 2martens.eu to 2martens.de resource "inwx_nameserver_record" "twomartens_eu_root_redirect" { - domain = "2martens.eu" - name = "" - content = "https://2martens.de" - type = "URL" - prio = 301 - ttl = 3600 + domain = "2martens.eu" + name = "" + content = "https://2martens.de" + type = "URL" + url_redirect_type = "HEADER301" + ttl = 3600 } resource "inwx_nameserver_record" "twomartens_eu_www_redirect" { - domain = "2martens.eu" - name = "www" - content = "https://2martens.de" - type = "URL" - prio = 301 - ttl = 3600 + domain = "2martens.eu" + name = "www" + content = "https://2martens.de" + type = "URL" + url_redirect_type = "HEADER301" + ttl = 3600 } \ No newline at end of file