Domain Name and URL Rewrite. Simpel fix.

Discussion in 'Windows / IIS' started by hunter2379, Jul 13, 2013.

  1. Background info:
    Website Root: C:\Website\root
    Website Physical Path: C:\Website
    So index.html is located in \root\

    Currently using URL Rewrite rule with ^$ to redirect any request to \root\

    Problem: URL in address bar shows:
    index.html: domain.com\root\
    about-us: domain.com\root\about-us.html
    contact-us: domain.com\root\contact-us.html
    etc, etc, etc

    I need a way to remove the \root\ so my site looks like:
    index.html: domain.com\
    about-us: domain.com\about-us.html
    contact-us: domain.com\contact-us.html
    etc, etc, etc

    I have little experience with URL Rewrite and have been googling all day. I'm sure there is a simple fix but I just can't find it.
     
  2. You can use the URL Rewrite Module within IIS Manager to help you create the URL rewrite and redirection. I have included a few links that provide instructions on how to do this.

    http://blog.discountasp.net/url-rewrite-2-0-for-iis-7-is-here/
    http://www.iis.net/learn/extensions/url-rewrite-module/using-the-url-rewrite-module
    http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/
    http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

    If you do not already have IIS manger installed on your local computer, please see the below knowledge base article for instructions on where to download the application and how to connect to your site using the application.

    https://support.discountasp.net/KB/a400/how-to-connect-to-windows-2008iis-7-using-microsoft.aspx
     
  3. I have iis 7. Didn't find what I was looking for. Any other ideas? The blog at discount adp helped but didn't fix it.
     

Share This Page