ASP.net页面重写为.html问题

时间:2018-02-12 11:58:41

标签: asp.net web-config

我在web.config文件中将.aspx页面重写为.html。我的registration.aspx页面正在重写为localhost / registration.html。
我发现了一些问题,

  
      
  1. 如果我键入localhost / registration.htmltesting而不是localhost / registration.html
  2.   
  3. 如果我键入localhost / registration.html?testing而不是localhost / registration.html
  4.   
  5. 如果我键入localhost / registration.html / testing而不是localhost / registration.html
  6.   

在所有情况下,页面应重定向到404错误页面。但它重定向到import time stopwatch = Stopwatch() stopwatch.start() driver.get("http://www.example.com") stopwatch.stop()

有没有解决方案?

0 个答案:

没有答案
相关问题