Setting up a default file not in a subdirectory

Discussion in 'Hosting Services / Control Panel' started by wisemx, Sep 28, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. In your default root file sniff for the URL being requested.


    Dim IncomingReq
    IncomingReq = Request.ServerVariables("SERVER_NAME")


    DimIncomingReq as string = me.Context.Request.ServerVariables("SERVER_NAME")
     
  2. How do I set a file in my subdirectory to be the default file when someone visits my domain? Specifically, I have CSK installed and the default file is www.mydomain.com/Commerce.Web/default.aspx

    Is there any way that I can make this my default file when someone goes to my domain?
     
  3. create a file called default.aspx and put this inside...





    <%@ Page Language="vb" AutoEventWireup="true" %>


    <script runat="server">
    Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
    Response.Redirect("/Commerce.Web/default.aspx")
    End Sub
    </script>





    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  4. Hi Joel,

    Thanks for the example.

    Ken
     
  5. Hi Joel,

    Please would you give a complete page as the example of the redirect script.

    Should the root filebe called index.htm?

    Thanks
    Ken
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page