redirecting websites virtual directories using IIS 6.0
HI,, i need some urgent help from you all guys. I am running a website in which have created 2 Virtual directories. Also IIS 6.0 is running on the server.For some reason i have moved the page of my site and now what i want is that the browsers can find the page at the new URL without any issue. Is that possible ? Please make me know how to redirect websites virtual directories using Internet Information Services 6.0 ?
Re: redirecting websites virtual directories using IIS 6.0
You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".
- To redirect requests to another Web site or directory, just go through this steps:-
- In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties.
- Click the Home Directory, Virtual Directory, or Directory tab.
- Under The content for this source should come from, click A redirection to a URL.
- In the Redirect to box, type the URL of the destination directory or Web site. For example, to redirect all requests for files in the Catalog directory to the NewCatalog directory, type /NewCatalog.
Re: redirecting websites virtual directories using IIS 6.0
To make sure that browsers can find the page at the new URL, you can instruct the Web server to redirect the browser to the new URL.You can redirect requests for files in one directory to a different directory, to a different Web site, or to another file in a different directory. When the browser requests the file at the original URL, the Web server instructs the browser to request the page by using the new URL.To redirect all requests to a single file:-
- In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties.
- Click the Home Directory, Virtual Directory, or Directory tab.
- Under The content for this source should come from, click A redirection to a URL.
- In the Redirect to box, type the URL of the destination file.
- Select the The exact URL entered above check box to prevent the Web server from appending the original file name to the destination URL.
Re: redirecting websites virtual directories using IIS 6.0
You can use wildcards and redirect variables in the destination URL to precisely control how the original URL is translated into the destination URL. Alternatively use the redirect method to redirect all requests for files in a particular directory to a program. Generally, you should pass any parameters from the original URL to the program, which you can do by using redirect variables.