Masking a redirection in IIS7

7,725

For IIS7 you will indeed need AAR. There are 3rd party modules available that can do what you need as well such as Helicon Ape: https://www.helicontech.com/ape/

Using AAR: Link

You'll be reverse proxying requests for http://www.bob.com/ to http://www.example.com/bob/

In Apache, with the correct modules loaded, it can be done as:

RewriteCond %{HTTP_HOST} ^www\.bob\.com [NC]
RewriteRule (.*) http://www.example.com/bob$1 [P,L]
Share:
7,725

Related videos on Youtube

atom
Author by

atom

Updated on September 18, 2022

Comments

  • atom
    atom almost 2 years

    My tools:

    • IIS7
    • 1 x Windows 2008 Server
    • IIS URL Rewrite Module 2 (installed)

    My requirement:

    • Mask the redirection of www.bob.com to www.abc.com/bob/index.html - the end user should not see the www.abc.com
    • The user should then be able to browse the website as normal.

    I have found references to installing AAR, however this seems to be more for load balancing etc.? Then others have said use a 3rd party tool etc.

  • Stephen Ostermiller
    Stephen Ostermiller over 10 years
    Can you expand on this answer in places so that nobody has to click through to at least get the main idea?