Click here to Skip to main content
15,888,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When browsing my code in IIS i'm getting incorrect URL Path like :
http://localhost/example/default.aspx?ReturnUrl=%2fexample
and when im logging from this url it is redirecting to same page with URL http://localhost/example. I have to redirect to my default.aspx page so any one suggest me.
do i need to make any changes in my web cofig file.
Posted

1 solution

XML
Here it is. Add this code to your web.config file:

<system.webServer>
    <rewrite>
        <rules>
            <rule name="Root Hit Redirect" stopProcessing="true">
                <match url="^$" />
                <action type="Redirect" url="/menu_1/MainScreen.aspx" />
            </rule>
        </rules>
    </rewrite>
</system.webServer>



I got my solution Thank You.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900