Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: ocean10000
But if I change this in IIS it creates a loop, and if I change it in the aspx.vb file it creates a loop....I don't know what to do. I have look all over the net and can't get an answer!
Code aspx.vb file:
If InStr(LCase(Request.ServerVariables("URL")), "default.aspx") > 0 Then
Response.Status = "301 Moved Permanently"
[edited by: encyclo at 2:28 pm (utc) on July 26, 2007]
[edit reason] switched to example.com [/edit]
This should be done through IIS if at all possible, not through ASP.NET.
Edit: Forgot to mention, you'll probably need a rewriting engine for IIS to accomplish this--I don't believe it provides URL rewriting capabilities by default.
[edited by: WesleyC at 6:26 pm (utc) on July 31, 2007]