From d2a8c057888872d018aa0f46721937911a9adc02 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sat, 28 Jul 2018 19:44:46 +0200 Subject: [PATCH] Redirects --- src/client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.cpp b/src/client.cpp index 682cbf4..e912e15 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -199,6 +199,8 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col } else { redir = false; } + } else if (getWebRoot(host).empty() && req.getPath() == "/robots.txt") { + req.redirect(303, "//www.necronda.net" + req.getPath()); } else { redir = false; }