This is for IIS6 or IIS7. I want to map a domain to a subdirectory.
For example:
http://www.example.com/dir1/test.aspx
I want to strip out the "http://www.example.com" part and redirect to a relative url, like "proj1/example/dir1/test.aspx". If that won't work, then replace with "http://www.example2.com/proj1/example/dir1/test.aspx. The user's url display must not change.
I know this has been done a million times but I've never worked on this.