2013-02-12 80 views

回答

0

這個怎麼樣?

routes.IgnoreRoute("{*allaspx}", New With {.allaspx = ".*\.aspx(/.*)?"}) 
routes.IgnoreRoute("{*robotstxt}", New With {.robotstxt = "(.*/)?robots.txt(/.*)?"}) 
+0

謝謝:)代碼不會拋出錯誤,但路由不會被忽略。我會將您的答案標記爲正確,並調查爲什麼路線不被忽略。 – MojoDK 2013-02-12 13:13:27