diff --git a/index.js b/index.js index a60767e..dbf9cf9 100644 --- a/index.js +++ b/index.js @@ -56,7 +56,7 @@ Mod.prototype.callback = function callback(req, res, serverconsole, responseEnd, if(preparedPath == matchingHostname) { preparedPath = "/"; } else { - preparedPath = preparedPath.replace(matchingHostname + "/",""); + preparedPath = preparedPath.replace(matchingHostname.substring(1) + "/",""); if(preparedPath == "") preparedPath = "/"; } }