Page is a not externally linkable
- Microsoft
-- Microsoft IIS Web Server and ASP.NET
---- How to 301 redirect default.aspx to root


WesleyC - 6:25 pm on Jul 31, 2007 (gmt 0)


Your problem is that example.com is, in essence, running example.com/default.aspx, since this is your default page. This redirects to example.com again, which will redirect yet again... creating an infinite loop.

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]


Thread source:: http://www.webmasterworld.com/microsoft_asp_net/3405231.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com