Last post Mar 21, 2007 04:54 AM by Bo Chen – MSFT
Mar 20, 2007 03:10 AM|amirreza_nl|LINK
I want to change default setting for example i want to set signin.aspx as my login page or home.aspx as my default page. I saw somewhere that I could do this in web.config I can't remember where I saw!
Thanks, Amir Reza NL
Mar 20, 2007 03:56 AM|Fredrik N|LINK
You can change the loginUrl in the web.config by adding the <forms> element to the <authentication>:
Mar 20, 2007 07:03 AM|fozia_izhar|LINK
u can do this simply by right clicking on ur singin.aspx page and set it as ur start page.
Mar 20, 2007 08:04 AM|Finni74|LINK
The default sign-in page is done in the config file authentication/authorisation sections.
To redirect to a specifc home page can be done in a variety of ways... my preferred method is simply to add an application settings such as "HomePage" and then doing a quick test on incoming requests (server varible HTTP_REFERER) if the request originates
outside the scope of you website do a redirect to the page defined as the "HomePage".
Hope this helps
Mar 20, 2007 06:30 PM|amirreza_nl|LINK
I want to explain my problem further.
Suppose, u have tree sub folder (fd1,fd2,fd3) u have a page under fd1 (test.aspx) now when a user go to ~/fd1 I want test.aspx is shown to the user. One possible solution is to create default.aspx and redirect it to test.aspx but I don't like this approach.
Thanks,Amir Reza Nl
Mar 21, 2007 04:54 AM|Bo Chen – MSFT|LINK
well, following is my advise:
there is a virtual directory corresponding to every folder/subfolder of your web application in IIS Manager.
Find the right virtual directory( in your example, it's fd1) and perform a right click,choose the
Peroperties and then Documents, in the
Enable default content page section, you can choose the page which you want to serve as the default page (in your example ,it's test.aspx).
there maybe some other alternative ways available, while i think what i have suggested is a good choice. think aobut it. :)