When I have the following structure:
<rewrite> <rules> <rule name="ggdwb" stopProcessing="true" enabled="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" pattern="(www.)?websitename.nl" /> <add input="{URL}" pattern="^/$" /> </conditions> <action type="Redirect" url="" redirectType="Temporary" /> </rule> </rules> </rewrite>
How can I make sure that, for example, "http://www.websitename.nl/foldername" will be redirected to http://ggdwijzer.ggd1.cbase2.nl/client/1/?websiteid=1&contentid=1 ?
You need to add the rule to your section. Each rule must have a unique name.
<add name="Rule1" virtualUrl="~/foldername" destinationUrl="~/client/1/?websiteid=1&contentid=1" ignoreCase="true"/>
Source: https://habr.com/ru/post/1775394/More articles:how to increase threads in jvm - javaKD tree, slow tree - c ++Handle hidden channel in antlr 3 - hiddenRemoving two newlines with awk / sed - unixMySQL to select specific DATETIME values? - phpbackground: url ('example.jpg'); Does not work! - htmlC ++: boost / filesystem: some questions - c ++Is the "World" reserved? Class name in AS3? - actionscript-3Entity Framework Provider for Oracle - .netHow is a physical address created in 8086? - x86-16All Articles