c# - ASP.Net Redirect Request from a specific URL to a particular part of my website -
our server admin has setup "site binding" in iis website on server, when end user uses specific url, redirects our site.
i need able determine when 1 of these redirects has taken place, , land end user on specific page on website.
can help?
your question says users getting redirected site, that's not how iis site bindings work. more aliases single site. if case, , site has multiple bindings , want redirect based on binding used, yes use rewrite rule in web.config system.webserver section, so:
<rewrite> <rules> <clear /> <rule name="redirect" stopprocessing="true"> <match url="(.*)" /> <conditions logicalgrouping="matchall" trackallcaptures="false"> <add input="{server_name}" pattern="www.binding1.com" /> </conditions> <action type="redirect" url="http://www.binding2.com/pages/binding1home" /> </rule> </rules> </rewrite>
Comments
Post a Comment