yes I'got it done like this. Happy now :-D
Public Class ErpUrlRewriteClass
Implements IHttpModule
Public Sub New()
End Sub
Public Sub Dispose() Implements System.Web.IHttpModule.Dispose
End Sub
Public Sub Init(ByVal Appl As System.Web.HttpApplication) Implements System.Web.IHttpModule.Init
AddHandler Appl.BeginRequest, AddressOf BeginRequest_Method_Inside_Module
End Sub 'Init
Public Sub BeginRequest_Method_Inside_Module(ByVal sender As Object, ByVal args As System.EventArgs)
Dim application As System.Web.HttpApplication = CType(sender, System.Web.HttpApplication)
Dim fullOrigionalpath As String = application.Request.Url.ToString()
'cast the sender to a HttpApplication object
If fullOrigionalpath.Contains("/ERP/Visma/") Then
application.Context.RewritePath("/ERP.aspx")
End If
End Sub