url重写


一、原理
void Application_BeginRequest(object sender, EventArgs e)
    {
        var Request = HttpContext.Current.Request;
        var Response = HttpContext.Current.Response;

        System.Text.RegularExpressions.Regex reg = new Regex(@"/default\-(\d{2})\.aspx",RegexOptions.IgnoreCase);
        Match match = reg.Match(Request.RawUrl);
        if (match.Success)
        {
            string s = match.Groups[1].Value;
            string url = "default.aspx? />

相关文章:

  • 2022-02-27
  • 2021-08-16
  • 2021-09-14
  • 2022-02-15
猜你喜欢
  • 2021-11-08
  • 2021-09-16
  • 2021-06-18
  • 2021-08-09
  • 2021-07-09
相关资源
相似解决方案