diff --git a/src/URI.cpp b/src/URI.cpp index 03eea13..deb7155 100644 --- a/src/URI.cpp +++ b/src/URI.cpp @@ -63,7 +63,7 @@ URI::URI(string webroot, string reqpath) { info = ""; relpath = reqpath; - while (!fileExists(webroot + relpath) && !fileExists(webroot + relpath + ".php")) { + while (!fileExists(webroot + relpath) && !fileExists(webroot + relpath + ".php") && !fileExists(webroot + relpath + ".html")) { long slash = relpath.find_last_of('/'); if (slash == string::npos) { break;