Duke
Duke

Reputation: 155

IIS 7 Url Rewrite with virtual directory

I have a aspx website in IIS7, with a virtual folder in the root (called 'app'), which is another aspx application.

I want www.main.com/section to show contents from www.other.com/page. However, www.main.com/section/app, I want to ignore the previous redirection (it will virtual folder contents).

I can't get this to work. This is what I have:

<rule name="Landing page" enabled="true">
  <match url="landing" />
  <action type="Rewrite" url="http://www.other.com/page" />
</rule>

Is this possible?

Upvotes: 0

Views: 5064

Answers (1)

Duke
Duke

Reputation: 155

Thank you for your answers.

I guess I have to use url rewrite and Application Request Routing.

Upvotes: 1

Related Questions