How to point site directly to application folder? (without a Redirect)

Discussion in 'Windows / IIS' started by RicoZaid, Jul 11, 2012.

  1. Web analytics people do now want me using Redirects :(

    I need my domain name to resolve to: root/apps/sitename/default.aspx

    again, WITHOUT using a Redirect.

    Thanks
     
  2. mjp

    mjp

    As long as your redirect is permanent (301), your web analytics people shouldn't care, because a permanent redirect has no negative effect on your search engine rankings.
     
  3. Thanks.

    I was just asked: "Is there any way (in IIS?) to point a domain directly to a subfolder?"
     
  4. martino

    martino DiscountASP.NET Staff

    To redirect subdomains or domain pointers to specific directories, we have some redirect information and sample code in our Knowledge Base, at: http://support.discountasp.net/KB/a369/how-to-redirect-a-subdomain-to-a-subdirectory.aspx.

    You may also use the URL Rewrite module to do redirection if you are in a Windows 2007/IIS7 server.

    For more information about the URL Rewrite module, you can read the following blogs:

    http://blog.discountasp.net/url-rewrite-2-0-for-iis-7-is-here/
    http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
     
  5. I'm afraid not. All accounts start from a root which looks something like this
    e:\web\sitename\htdocs

    That is the root and where the default document read from. This is setup by our provisioning system and can not be modify to map and redirect to another directory. Not through IIS. The only way to get your site start from a subdirectory is by using redirect module.
     

Share This Page