I have a urlrewrite.xml which I want to use to redirect an url
<rule>
<from>/http</from>
<to redirect="true">https://www.example.com</to>
</rule>
I want the example.com to be coming from a java system variable which I have set at startup, however it didnt work. This is the code I modified to use the java system variable 'exampleurl'
<rule>
<from>/http</from>
<to redirect="true">${exampleurl}</to>
</rule>
It is just an alternative What I have tried.
This will help if you use same thing multiple times in the same file.
Add the above line to DOCTYPE line like this.
Use &exampleurl; like below: