Results 1 to 2 of 2

Thread: Redirecting virtual directory to a specific URL in IIS7

  1. #1
    Join Date
    May 2009
    Location
    Tulsa, OK
    Posts
    220

    Default Redirecting virtual directory to a specific URL in IIS7

    This change must be done within IIS7, not within Helm.

    First, open IIS7 and find the site, right click the site and click Add Virtual Directory

    Add the Virtual Directory name and then enter a physical location (ie, d:\home\your_site ... you will change this in the next steps) and click Ok.

    Now that the Virtual Directory has been added, double click the Virtual Directory which will then give you the IIS Settings box. Within this box look for HTTP Redirect.

    Right click and Open the properties for HTTP Redirect

    Check the option for "Redirect Requests to this destination

    Then you will enter the full url like the example on that page shows. Once complete, click Apply and you are done.

  2. #2

    Default IIS7 HTTP Redirects - Folder

    Similar to the original post are some additional instructions on creating a HTTP Redirect in IIS7 by using an existing folder in the web root of your site.

    1. Open IIS Manager and navigate to site, and folder you want to create a redirect for.

    2. In Features View, double-click HTTP Redirect.

    3. This step depends on if you are redirecting to an exact URL or path relative to the destination.

    RELATIVE URL:
    On the HTTP Redirect page, select Redirect requests to this destination. In the corresponding box, type the file name, directory path, or URL to which you want to redirect the user.

    EXACT URL:
    On the HTTP Redirect page, under Redirect Behavior, select Redirect all requests to exact destination (instead of relative to destination).

    4. Choose the status code if necessary the default is set to 302 which is a Standard redirect.

    Options include:

    # Standard (302) - to tell the Web client to issue a new request to the location specified in the Location HTTP header.

    # Permanent (301) - to tell the Web client that the location for the requested resource has permanently changed.

    # Temporary (307) - to tell the Web client to resend the POST data, which prevents a Web browser from losing data when the browser issues an HTTP POST request.


    5. In the Actions pane, click Apply.
    References:
    http://technet.microsoft.com/en-us/l...8WS.10%29.aspx
    Jon Cavanaugh
    ColdFusion Systems Analysts
    Director of Business Development
    Linux Hosting | Christian Hosting | Railo Hosting

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •