I\'m trying to set a RestPath for root, \'/\', but its not allowing me to. Its saying RestPath \'/\' on Type \'MainTasks\' is not Valid
Is there a way t
This worked for me. I just added the RawHttpHandler and rewrote the request path. Worked like a champ. (This is found in my AppHost's Configure function.)
var conf = new EndpointHostConfig();
{
DefaultRedirectPath = "/foo",
AllowFileExtensions = { { "eot" }, { "svg" }, { "ttf" }, { "woff" } },
};
conf.RawHttpHandlers.Add(r =>
{
if (r.RawUrl == "/")
{
HttpContext.Current.RewritePath(conf.DefaultRedirectPath);
}
return null;
});
this.SetConfig(conf);