Click here to Skip to main content
15,921,028 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I am implemented the MVC3 application with website and adminsite.
and am assigned the 127.0.0.1 ip address to both web site and admin site. in C:\Windows\System32\drivers\etc\host file
my web site url is web.mywebsite.local
my admin site url is admin.myadminsite.local
but when am trying to redirect from web site to admin site am getting the following url pattern
http://web.mywebsite.local/?ReturnUrl=http://admin.myadminsite.local

please tel me help me to solve the problem

thank u
Posted

1 solution

Redirection is helpful in the following situations:

1. You change the location of your Web site and want to redirect users to your new site.

2. Your Web site is under construction and you want part of the site to be unavailable.

3. Your content is not located on the Web server.

4. You have changed the name of a virtual directory and you want users to be able to access files from the old URL.

In the simplest configuration, you need only set the enabled and destination attributes of the <httpredirect> element in order to redirect clients to a new location. However, additional elements like the exactDestination and httpResponseStatus attributes allow you to configure the end-user experience of the redirection by respectively specifying whether IIS 7 will return the destination URL exactly as entered and which HTTP response code to return to the Web client.
 
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