locked
Accessing Remote Desktop Web Access Directly without the RDWEB Path RRS feed

  • Question

  • I currently have RD Web Access configured to be accessed as http://rdsserver.domain.org/rdweb.  Is there anyway to configure it to work without needing to add /rdweb?  
    Thursday, August 23, 2012 3:29 PM

Answers

  • Hi,

    In IIS Manager on your RDWeb server, please select Default Web Site in the left pane.  In the middle pane double-click HTTP Redirect.  Select Redirect requests to this destination and enter the following:

    https://rdsserver.domain.org/rdweb

    Select Only redirect requests to content in this directory (not subdirectories)

    Set Status Code to Permanent (301)

    After making the above change please test that you are seeing the desired behavior.

    An alternative solution to the above would be to create a default.aspx file at the Default Web Site root (c:\inetpub\wwwroot) and perform the redirect that way.  In this case you would need to move default.aspx up to the top of the list of the default documents for the Default Web Site in IIS Manager.  Here is a sample default.aspx file that would perform the redirect:

    <%@ Page Language="VB" EnableSessionState="False" EnableViewState="False" Trace="False" Debug="False" Strict="True" %> 
    <script language="vb" runat="server">
      Sub Page_Load(sender as Object, e as EventArgs)
    		Response.Status = "301 Moved Permanently"
    		Response.AddHeader("Location", "https://rdsserver.domain.org/rdweb")
      End Sub
    </script>

    Thanks.

    -TP

    Thursday, August 23, 2012 5:09 PM

All replies

  • Hi,

    In IIS Manager on your RDWeb server, please select Default Web Site in the left pane.  In the middle pane double-click HTTP Redirect.  Select Redirect requests to this destination and enter the following:

    https://rdsserver.domain.org/rdweb

    Select Only redirect requests to content in this directory (not subdirectories)

    Set Status Code to Permanent (301)

    After making the above change please test that you are seeing the desired behavior.

    An alternative solution to the above would be to create a default.aspx file at the Default Web Site root (c:\inetpub\wwwroot) and perform the redirect that way.  In this case you would need to move default.aspx up to the top of the list of the default documents for the Default Web Site in IIS Manager.  Here is a sample default.aspx file that would perform the redirect:

    <%@ Page Language="VB" EnableSessionState="False" EnableViewState="False" Trace="False" Debug="False" Strict="True" %> 
    <script language="vb" runat="server">
      Sub Page_Load(sender as Object, e as EventArgs)
    		Response.Status = "301 Moved Permanently"
    		Response.AddHeader("Location", "https://rdsserver.domain.org/rdweb")
      End Sub
    </script>

    Thanks.

    -TP

    Thursday, August 23, 2012 5:09 PM
  • Hi,

    I would like to confirm what is the current situation? If there is anything that I can do for you, please do not hesitate to let me know, and I will be happy to help.

    Regards,

    Clarence

    TechNet Subscriber Support

    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Wednesday, August 29, 2012 3:17 AM