To redirect requests to another Web site or directory
1.In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties.
2.Click the Home Directory, Virtual Directory, or Directory tab.
3.Under The content for this source should come from, click A redirection to a URL.
4.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.
To redirect all requests to a single file
1.In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties.
2.Click the Home Directory, Virtual Directory, or Directory tab.
3.Under The content for this source should come from, click A redirection to a URL.
4.In the Redirect to box, type the URL of the destination file.
5.Select the The exact URL entered above check box to prevent the Web server from appending the original file name to the destination URL.
You can use wildcards and redirect variables in the destination URL to precisely control how the original URL is translated into the destination URL.
You can also 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.
To redirect requests to a program
1.In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties.
2.Click the Home Directory, Virtual Directory, or Directory tab.
3.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 program, including any redirect variables needed to pass parameters to the program. For example, to redirect all requests for scripts in a Scripts directory to a logging program that records the requested URL and any parameters passed with the URL, type /Scripts/Logger.exe?URL=$V+PARAMS=$P. $V and $P are redirect variables.
4.Select the The exact URL entered above check box to prevent the Web server from appending the original file name to the destination URL.
Source: http://technet.microsoft.com/en-us/library/cc736641(WS.10).aspx
Tuesday, January 12, 2010
Stop and Start IIS
from a DOS command line
To stop IIS, at the DOS command prompt, type,
iisreset /stop
To restart it, type
iisreset /start
.
from Windows
Click Start and point to Programs. Point to Administrative Tools, and then click Computer Management.
Expand Services and Applications.
Expand Internet Information Services.
Right click Default Web Site, and select Stop or Start.
To stop IIS, at the DOS command prompt, type,
iisreset /stop
To restart it, type
iisreset /start
.
from Windows
Click Start and point to Programs. Point to Administrative Tools, and then click Computer Management.
Expand Services and Applications.
Expand Internet Information Services.
Right click Default Web Site, and select Stop or Start.
Subscribe to:
Posts (Atom)