IIS8 and URL redirect using URL Rewrite Module -
i have 2 sites running on server 2012 r2 web server:
- firstsite, port 80
- secondsite, port 1234
right now, users have type in host name, port number, , sub folder in order view 'second site' http://webserver:1234/subfolder
.
i'm trying simplify url users can type in url site.mydomain.com
, have (permanently) redirected site.mydomain.com:1234/subfolder
.
i've tried applying following rule on secondsite:
<rewrite> <rules> <rule name="redirect" stopprocessing="true"> <match url=".*" /> <action type="redirect" url="http://site.mydomain.com:1234/subfolder" /> </rule> </rules> </rewrite>
but doesn't seem anything.
a cname
record has been configured in dns site.mydomain.com
resolve http://webserver
.
i need getting redirection 'secondsite' @ port 1234.
i assume first site hosted on iis , rule running within context of first site. if so, should work...to validate setup, i'd start article , augment use case:
Comments
Post a Comment