Redirects

This commit is contained in:
2018-07-28 19:28:08 +02:00
parent 6c35622ef1
commit 811cd7be5a
2 changed files with 16 additions and 6 deletions

View File

@ -191,14 +191,11 @@ string read_line(FILE* file) {
#include "../CppNet/src/network/http/HttpConnection.cpp"
string getWebRoot(string host) {
if (host == "www.necronda.net") {
host = "www.necronda.net-new";
}
string root = webroot + host;
if (fileExists(root)) {
return root;
} else {
return (string) webroot + "www.necronda.net-new";
return "";
}
}