IIS 5 & IIS 6
Configuration & Scripting
Redirection with IIS 6.0 variables
Last post Feb 12, 2013 02:04 PM by owjeff
Feb 11, 2013 11:51 PM|LINK
This may have been answered before.
I have 3 sets of URL that need to to each be re-direccted to a 3 different static html pages that has some code that will be recognized by an external api call.
https://blah.companyA.com/grid/config/apps/XX-static/metadata needs to get redirected to https://blah.companB.com/page1
https://blah.companyA.com/grid/config/apps/YY-static/metadata needs to get redirected to https://blah.companB.com/page2
https://blah.companyA.com/grid/config/apps/ZZ-static/metadata needs to get redirected to https://blah.companB.com/page3
The origin URL has everythign same except the stuff between "apps" and "metadata"</div>
Can I do this with one website redirect?
I have been reading up on some $V $Q variable settings but am unclear on how to use it to do what I am trying to get done here.
Any help is much appreciated.
Feb 12, 2013 02:04 PM|LINK
Though you can use 3 different redirect rules to another URL (see redirect requests to another directory or Web Site), URL Rewriting is a better option:
In IIS7, you could use the URL Rewrite module, however, that does not work for IIS6. I'd recommend either using a 3rd party rewrite option:
Or, you could create an ASP.NET page named "metadata" in each of those directories that performs the redirect. Since there's no extension on the filename, you'd need to configure a wildcard mapping: