Re: forms authentication: redirects for *.aspx pages only, not for other extensions, not for static content

From: Hardip Wadhwa (hardip.ssb_at_idsil.com)
Date: 07/20/04


Date: Tue, 20 Jul 2004 17:55:45 +0530

You can only redirect " .aspx pages" with default IIS Settings. If you want
to redirect for other content i.e. .htm, .gif you have to map those files in
IIS to get it processed by aspnet_isapi.dll.

"www.MSmobiles.com" <nospam@msmobiles.com> wrote in message
news:OYUdXZFbEHA.1292@TK2MSFTNGP10.phx.gbl...
> Hi!
>
> I am using something like this in web.config :
>
> <authentication mode="Forms">
> <forms name=".MSMOBILES_COM___COOKIE"
> loginUrl="login.aspx"
> protection="All"
> timeout="30"
> path="/">
> <credentials passwordFormat="Clear">
> <user name="user1" password="password1"/>
> </credentials>
> </forms>
> </authentication>
> </authentication>
>
> then, when I try to access some *.aspx page, for example:
>
> myserver.com/kirk.aspx
>
> I get redirection to:
>
> myserver.com/login.aspx?ReturnUrl=%2fportal%2fdupa.aspx
>
> and then everything is OK, but when try to access some other pages and
> content for example:
>
> myserver.com/test1.html
> or
> myservrc.com/test1.gif
>
> .... then NO REDIRECTION takes place and the server allows access to this
> content!!!!
> How to force IIS to make rediredction also in case of static (i.e. not
> *.aspx) content????
>
>
>
>
>
>
>