Configuring the WorkflowGen root website to auto-redirect to the "wfgen" web app

As of WorkflowGen 7.22.0, you should configure your WorkflowGen root website (e.g. https://server) to auto-redirect to the https://server/wfgen web app. (You can also do this for earlier versions of WorkflowGen.)

Note: As of WorkflowGen 7.15.0, the PowerShell setup comes with this configuration pre-installed on your WorkflowGen server. This procedure is applicable only when upgrading an existing previous WorkflowGen server.

To do this:

  1. Make sure the URL Rewrite tool is already installed on your WorkflowGen server.

  2. Create or update the web.config under your website’s root folder (e.g. DRIVE:\inetpub\wwwroot\web.config).

    Warning: This is not the same web.config file as the main WorkflowGen web.config file (located in DRIVE:\inetpub\wwwroot\wfgen\web.config).

  3. Define the rewrite rule node as shown below (configuration / system.webServer / <rewrite> / <rules> / <rule>):

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="Root to wfgen" stopProcessing="true">
                        <match url="^$" />
                        <action type="Redirect" url="/wfgen/" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>