HI,
THanks for the link - it makes sense, however when I convert the code to VB i get an error on the word path on the line "Path.GetFileNameWithoutExtension(strCurrentPath)" - it says that "name path is not declared" should it be a different word?
does that make sense or am i just doing something stupid?
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Dim strCurrentPath As String
Dim strCustomPath As String
strCurrentPath = Request.Path
strCurrentPath = strCurrentPath.ToLower()
' the URL contains this folder name
If strCurrentPath.IndexOf("/SomeSubFolder/") > -1 Then
strCustomPath = "getContent.aspx?id=" & Path.GetFileNameWithoutExtension(strCurrentPath)
' rewrite the URL
Context.RewritePath(strCustomPath)
End If
End Sub
thanks,
Scott