• 0

Azure Front Door to Windows Server some IIS help.


Question

Right now, I have an Azure Front Door going to a Windows Server that has a sub folder that is called "AppServer" and then you have to type Windowsserver.com/AppServer/home before it routes properly.  What do you suggest for IIS that I can have windowsserver.com be routed to windowsserver.com/appserver/home instead of having to type it?

2 answers to this question

Recommended Posts

  • 0

You could edit the web.config for windowsserver.com to make a rule for traffic hitting the domain to then redirect to /AppServer/home

<system.webServer>
    <rewrite>
        <rules>
            <rule name="Redirect Domain Root" stopProcessing="true">
                <match url="^$" />
                <action type="Redirect" url="/AppServer/home" />
            </rule>
        </rules>
    </rewrite>
</system.webServer>

Or you could create an index.html file to place in the wwwroot of windowsserver.com that will redirect to /AppServer/home when loaded

<html>
<head>
<meta http-equiv="refresh" content="0; URL='https://windowsserver.com/AppServer/home'" />
<title>Windows Server App Redirect</title>
</head>
<body>
</body>
</html>

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.