Thanks a lot, but with that code I got a Redirect loop error.
When I change to Rewrite, I got an error:
HTTP Error 404.4 - Not Found
The resource you are looking for does not have a handler associated with it.
I'm on the shared hosting. They do not have Application Request Routing module installed. Is that a problem maybe? They also do not have URL Rewrite Module v2.0. (they have v1.1 I think).
On my hosting I have a subfolder which is configured as Virtual directory with Web Application in it. I also have a different Web Application in the root of the site.
I make rule and associated rewrite map so that when user types
www.subdomain.domain.org/blog and client browser opens the page
www.domain.org/subdomainfolder/blog.aspx succesfuly, with url in client
browser being the requested www.subdomain.domain.org/blog. Great so
far. But, on post back on the same page which is induced by clicking a
button, url in client browser convert to this
www.subdomain.domain.org/subdomainfolder/blog.aspx.
I need that WebApp in that subfolder performs next (I think it is rewrite):
All that clinet browser url box would always should show to be in format
ww.subdomainblog.domain.org/blog.aspx , meaning that everything that is in format of www.domain.org/blog... be in the client url browser text box like www.blog.domain.org/...
In the root of the site I have Glogal.asax.cs, and in Application_BeginRequest I have redirect rules for subdomains. I guess this can be done through rules also.
What is the best way do that kind of redirect || rewrite?
Is what I need in new features of URL Rewrite module v2.0? Outbound Rules?
Many questions. Thanx