投稿済み Thu, 21 Sep 2023 23:15:25 GMT 、投稿者 Carlos Francisco Chavarría Rustrián JEFE DE INFORMATICA
Has anyone made a redirection from IIS to docuware, example: when entering https://example/ it automatically takes me to https://example/DocuWare.
投稿済み Tue, 26 Sep 2023 12:16:08 GMT 、投稿者 Gerardo Lisanti Team Leader Product Management
Hi Carlos,

a simple way is to use the IIS HTTP Redirect feature. When enabled you can configure the redirect in IIS Manager.
Alternatively you can manually create/modify the web.config file in the root directory of the website (e.g. C:\inetpub\wwwroot) with following content:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpRedirect enabled="true" destination="/DocuWare" childOnly="true" />
    </system.webServer>
</configuration>



Viele Grüße / With best regards,

Gerardo Lisanti
Team Leader Product Management  |  DocuWare GmbH
投稿済み Tue, 24 Oct 2023 16:17:01 GMT 、投稿者 Carlos Francisco Chavarría Rustrián JEFE DE INFORMATICA
Muchas gracias Gerardo.

Ha funcionado, sin embargo, al entrar https://Example/12345 me redirige a https://Example/DocuWare/12345 que me muestra un error 404 ya que no es una página existente.

Busco cuando entro https://Example/12345 o cualquier otra variante que me lleve a https://Example/DocuWare/.

Gracias de antemano
投稿済み Wed, 25 Oct 2023 07:31:38 GMT 、投稿者 Gerardo Lisanti Team Leader Product Management
Hi Carlos,

try:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpRedirect enabled="true" destination="/DocuWare" exactDestination="true" childOnly="true" />
    </system.webServer>
</configuration>
This will redirect https://example/12345 to https://example/DocuWare


Viele Grüße / With best regards,

--
Gerardo Lisanti
Team Leader Product Management  |  DocuWare GmbH
 
投稿済み Wed, 25 Oct 2023 15:45:05 GMT 、投稿者 Carlos Francisco Chavarría Rustrián JEFE DE INFORMATICA
Hello, I have tried the recommended configuration, however, it did not work.

If I enter 
https://docuwaresmart.com/ it redirects me to https://docuwaresmart.com/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/

and if I enter https://docuwaresmart.com/12345 it takes me to https://docuwaresmart.com/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/DocuWare/

as recommended in the beginning I am adding the code to a web.config in the path C:\inetpubwwwroot
投稿済み Thu, 26 Oct 2023 07:27:39 GMT 、投稿者 Gerardo Lisanti Team Leader Product Management
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

フォーラムに投稿するためにはログインが必要です。