IIS URL rewrite https://testdomain.com to https://testdomain.com/RDWeb/webclient

Martin Schwabe 101 Reputation points
2022-11-03T15:59:04.803+00:00

Hi guys,

i have a small problem with the URL rewrite. I have a RD Web Access Server running which also acts as a reverse proxy. The redirects to other servers work fine. Only the one on the server itself from RDWebAccess to the subdirectory does not work.

It should redirect https://testsite.com to https://testsite.com/RDWeb/webclient.

I have the following as incoming rule:

256875-image.png

Can someone help?

Regards Martin

Internet Information Services
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,239 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,272 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sam Wu-MSFT 7,036 Reputation points Microsoft Vendor
    2022-11-04T02:40:16.577+00:00

    @Martin Schwabe

    It should redirect https://testsite.com to https://testsite.com/RDWeb/webclient. I have the following as incoming rule

    Your hostname doesn't seem to match your requested url, and what is your purpose of using {R:1} in the url? Is the url you requested dynamic? If yes, please give an example, if not, you can try below rule:

    <rules>  
        <rule name="test" stopProcessing="true">  
           <match url="^$" />  
            <conditions logicalGrouping="MatchAll">  
              <add input="{HTTP_HOST}" pattern="testsite.com" negate="false" />  
            </conditions>  
          <action type="Redirect" url="https://testsite.com/RDWeb/webclient" appendQueryString="false" redirectType="Permanent" />  
        </rule>  
    </rules>  
    

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful