/// <summary> /// Posts for author /// </summary> /// <param name="context">The HTTP context.</param> /// <param name="url">The URL string.</param> public static void RewriteAuthor(HttpContext context, string url) { var author = UrlRules.ExtractTitle(context, url); var path = $"{Utils.ApplicationRelativeWebRoot}default.aspx?name={author}{GetQueryString(context)}"; context.RewritePath(path, false); }
/// <summary> /// Posts for author /// </summary> /// <param name="context">The HTTP context.</param> /// <param name="url">The URL string.</param> public static void RewriteAuthor(HttpContext context, string url) { var author = UrlRules.ExtractTitle(context, url); var path = string.Format("{0}default.aspx?name={1}{2}", Utils.ApplicationRelativeWebRoot, author, GetQueryString(context)); context.RewritePath(path, false); }