locked
Send everyone to one page RRS feed

  • Question

  • User-285988996 posted
    Hello, I would like to send everyone to the only page in my application regardless of what they type in. therefore: localhost/Myfolder/page1.aspx localhost/Myfolder/page3.aspx localhost/NewFolder/Test3/goblygoo.aspx localhost/NewFolder/test/test33/goo.html will go to: localhost/default.aspx I don't care about rewriting URLs. All visitors need to go to one page but have the ability to type in strings after the URL. I tried just using Server.Transfer in global.asax.vb section Application_BeginRequest but that didn't work. Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) '-- Send all application requests to default.aspx Server.Transfer("default.aspx") End Sub I would also like to strip of any file extensions therefore if they type localhost/mypage.htm localhost/folder1/mypage.asdf still goes to localhost/default.aspx TIA, Mike
    Monday, September 27, 2004 10:33 AM

All replies