locked
Reroute the default document to a subfolder RRS feed

  • Question

  • User-1982615125 posted

    i want to move the entire concern that the main site focusses on into another folder than the management or analytics parts focusses on.

    now i need to reroute the default document to a subfolder. so that domain "~/" requests refer to "~\folder\default.aspx

    Saturday, May 26, 2018 12:40 AM

All replies

  • User475983607 posted

    i want to move the entire concern that the main site focusses on into another folder than the management or analytics parts focusses on.

    now i need to reroute the default document to a subfolder. so that domain "~/" requests refer to "~\folder\default.aspx

    The question is not totally clear.

    Issue a redirect in the root default.aspx code behind on Page_Load. 

    Response.Redirect("~/folder/default.aspx");

    If you are using routes in Web Forms, see the docs.

    https://msdn.microsoft.com/en-us/library/dd329551.aspx

    Saturday, May 26, 2018 11:11 AM