简体   繁体   中英

URL Rewriting IIS6 a URL instead of another URL

i have a .net application, currently siting on my local pc. the url now for my application:

http://localhost/foooz/portal/login.aspx

how do i can connect a web instance to the URL above instead of URL below:

http://localhost/foooz

can i just keying http://localhost/foooz and it will direct bring me to http://localhost/foooz/portal/login.aspx ???

Use below :

In Windows 20008, IIS 7.0

Administrative Tools-> IIS Manager -> You Server Name -> Your site name -> Under HTTP features -> Default document -> Add login.aspx

Or

Put the following in site's or application's web.config file:

>    <system.webServer>
>         <defaultDocument>
>            <files>
>                <add value="~/Default.aspx"/>
>            </files>
>         </defaultDocument>
>     </system.webServer>

or

Use Form authentication ,Form authentication is cookie based, as ASP.NET places a cookie in the client machine in order to track the user. If the user requests a secure page and has not logged in, then ASP.NET redirects him/her to the login page. Once the user is authenticated, he/she will be allowed to access the requested page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM