default directory

Discussion in 'General troubleshooting' started by csinusa, Dec 28, 2010.

  1. Hi,
    I have my website setup. I have 6 folders and one virtual directory /application configured under my root folder.
    When I browse to my website, I dont automatially get to my virtual directory... for eg. www.abc.com doesnt take me to www.abc.com/virtualdirectory.
    I have also set my application path to this virtualdirectory.

    Any help would be appreciated.
     
  2. Ray

    Ray

    You will need to setup a redirect line so that it redirects you to the subfolder.


    <%
    Response.Redirect "http://www.abc.com/virtualdirectory"
    %>
     
  3. Why cant I just tell in IIS that the application starting point is "x" folders rather than doing response.redirect?
     
  4. Ray

    Ray

    Unfortunately that's not how IIS works when it is configured as a shared hosting environment. The only way to do this is through a redirect script.
     

Share This Page