Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Rewriting Specific URL to Subfolder

$
0
0

I have a single site hosting multiple applications. I want to simplify the URL's for customers from webapp.domain.com/application1 or webapp.domain.com/application2 to test1.domain.com, and test2.domain.com. I have added bindings for test1.domain.com and test2.domain.com. I need to redirect or rewrite these url's to subfolders within the site. I cannot for the life of me get this to work.

Here is what I hvae been trying to get to work.

<rule name="test1" stopProcessing="true">
<match url="^test1.domain.com$" />
<action type="Redirect" url="http://test1.domain.com/test1" />
</rule>
<rule name="test2" stopProcessing="true">
<match url="^test2.domain.com$" />
<action type="Redirect" url="http://test2.domain.com/test2" />
</rule>


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>