Hi Carlos,
I have found that what you want is not possible with the Redirect module. You need to use the
URL rewrite module in IIS.
If it is not available, you have to first download and install it from here:
https://www.iis.net/downloads/microsoft/url-rewrite
Afterwards, use this code in your wwwroot web.config to redirect the requests:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect to DocuWare" stopProcessing="true">
<match url="^DocuWare$|^DocuWare/(.*)$" negate="true" />
<action type="Redirect" url="/DocuWare" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
It uses the regular expression
^DocuWare$|^DocuWare/(.*)$
to check the URL.
All requests that do
not match this expression will be redirected to
/DocuWare
Viele Grüße / With best regards,
--
Gerardo Lisanti
Team Leader Product Management | DocuWare GmbH