
May 28th, 2008, 12:42 PM
|
|
Registered User
|
|
Join Date: May 2008
Posts: 1
Time spent in forums: 4 m 46 sec
Reputation Power: 0
|
|
|
Script - HttpRedirect CHILD_ONLY problems
Hi,
I'm trying to automate the redirection of the Default Web Site to a subdirectory (virtual directory) on IIS using the following script:
adsutil.vbs SET w3svc/1/Root/HttpRedirect "/Subdirectory,CHILD_ONLY"
When I open up IIS and look at the Default Web Site properties, I see that the setting has taken effect i.e. The radio button for 'A redirection to a URL' is checked and the redirect url is set to /Subdirectory
Except, when i try to navigate to the website from a web browser, I get a "Page not found" error.
Has anyone come across such a problem before? any ideas on why this is happening and a solution to it?
|