Redirects

This commit is contained in:
2018-07-28 19:44:46 +02:00
parent 58d3c6ca08
commit d2a8c05788

View File

@ -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;
}