<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://mvolo.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx</link><description>In a web application, it&amp;rsquo;s often necessary to redirect clients requesting one url to another url. Here are some reasons why your application may need to do it: &amp;middot; A part of your site should only be accessed over HTTPS to protect private data,</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>ServerSide : Redirect requests to your application with the HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#1599</link><pubDate>Thu, 24 May 2007 19:25:25 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1599</guid><dc:creator>ServerSide : Redirect requests to your application with the HttpRedirection module</dc:creator><description>PingBack from http://mvolo.com/blogs/serverside/pages/Redirect-requests-to-your-application-with-the-HttpRedirection-module.aspx</description></item><item><title>Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#1600</link><pubDate>Thu, 24 May 2007 19:27:57 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1600</guid><dc:creator>Mike Volodarsky's WebLog</dc:creator><description>&lt;p&gt;In a web application, it’s often necessary to redirect clients requesting one url to another url. A while&lt;/p&gt;
</description></item><item><title>Redirect clients in your application with HttpRedirection module </title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#1601</link><pubDate>Thu, 24 May 2007 20:00:14 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1601</guid><dc:creator>iis</dc:creator><description>&lt;p&gt;In a web application, it’s often necessary to redirect clients requesting one url to another url. A while&lt;/p&gt;
</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#1604</link><pubDate>Fri, 25 May 2007 02:40:13 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1604</guid><dc:creator>Rajiv Das</dc:creator><description>http://localhost:49887/wwwroot/page.aspx?referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=&amp;referrer=

Tried this on firefox?
</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#1611</link><pubDate>Fri, 25 May 2007 13:01:01 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1611</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Rajiv, Nice catch! &lt;/p&gt;&lt;p&gt;The regular expression in the referrer example was a bit off, causing a loop (regardless of browser). &lt;/p&gt;&lt;p&gt;Unless you are a regular expression master, this is pretty common - a good way to detect and break these loops is to set the &amp;quot;&lt;strong&gt;appendOriginalUrl&lt;/strong&gt;&amp;quot; to true, which causes the redirect to keep track of the number of redirects and break the loops when they exceed the &amp;quot;&lt;strong&gt;maxRedirects&lt;/strong&gt;&amp;quot; number - 3 by default. Very useful when testing. &lt;/p&gt;&lt;p&gt;I fixed the regular expression and updated the sample app. &lt;/p&gt;&lt;p&gt;Thanks! &lt;/p&gt;&lt;p&gt;Mike&lt;/p&gt;</description></item><item><title>Points of interest #9</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#1629</link><pubDate>Sat, 26 May 2007 17:25:47 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1629</guid><dc:creator>John Mandia's Points of Interest</dc:creator><description>&lt;p&gt;Well this week was a nice rest, most of it spent relaxing with my wife. So it was a non-coding week but&lt;/p&gt;</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#1704</link><pubDate>Wed, 30 May 2007 06:29:50 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1704</guid><dc:creator>Johny</dc:creator><description>this is just for ASP.NET right? I'm just thinking if IIS 7 will have something like APACHE's got "mod_rewrite". Now on IIS 6 I need ISAPI_REWRITE modul for PHP. It would be nice to have something like this integrated. </description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#1823</link><pubDate>Tue, 05 Jun 2007 20:09:35 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1823</guid><dc:creator>anony</dc:creator><description>Johny, there is a similar isapi filter to mod_rewrite although it doesn't support all the same features...  Take a look at this one: http://www.codeplex.com/IIRF</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#1825</link><pubDate>Tue, 05 Jun 2007 20:35:36 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1825</guid><dc:creator>Mike Schinkel</dc:creator><description>So I'm trying to get ASP working under IIS7 and want to  eliminate ISAPI Rewrite for server-side rewriting.  How to do this for ASP on IIS7?</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#1889</link><pubDate>Fri, 08 Jun 2007 14:10:12 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1889</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Mike, &lt;/p&gt;
&lt;p&gt;You can write a simple ASP.NET module that runs for all requests, and does the rewriting you want. &amp;nbsp;Then you can place this module in your application, so there is no need to install anything on the server ... &lt;/p&gt;
&lt;p&gt;I'll cover rewriting in IIS7 in a future post in more detail ...&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike &lt;/p&gt;
</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#3587</link><pubDate>Tue, 17 Jul 2007 11:36:53 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:3587</guid><dc:creator>Luke Hatcher</dc:creator><description>Mind my IIS ignorance, but I can't figure out how to actually use this. When you say use the sample app, where do I add that to an existing web site being served with IIS?</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#5033</link><pubDate>Thu, 16 Aug 2007 02:36:37 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:5033</guid><dc:creator>Halil</dc:creator><description>&lt;&lt; I'll cover rewriting in IIS7 in a future post in more detail &gt;&gt;

Well, Im looking forward to that. Like as Johny said; Im just wondering if IIS7 will have something like Apache's mod_rewrite feature?
</description></item><item><title>Mike's IIS7 modules - what's coming next</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#9733</link><pubDate>Sun, 28 Oct 2007 07:13:47 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:9733</guid><dc:creator>Mike Volodarsky's ServerSide</dc:creator><description>&lt;p&gt;During IIS7 development, I&amp;amp;#39;ve written quite a few modules for IIS7 / ASP.NET. Some of these were&lt;/p&gt;
</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#12827</link><pubDate>Thu, 15 Nov 2007 23:38:18 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:12827</guid><dc:creator>cuff@interware.net</dc:creator><description>I want a user to login to my C++ application (which autheticates him)  Then he can click a button and be redirected to another remote site.  Can I do an invisble login for the user into the remote site  (windows standard authentication)  - I do not want the user to know the username/password for the login.

I noticed in the HttpRedirection above has a field for Postauthenticate. </description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#12856</link><pubDate>Sat, 08 Dec 2007 18:24:26 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:12856</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Cuff,&lt;/p&gt;
&lt;p&gt;PostAuthenticate allows the user to be redirected only after he/she succesfully authenticates against the original URL. &amp;nbsp;Depending on the authentication scheme, the browser may keep the authentication result in reuse it for the redirected URL. &amp;nbsp;Windows Authentication will stay in effect if the browser makes the subsequent request on the same connection. &amp;nbsp;So, if the url is in the same site, this should work. &amp;nbsp;Basic authentication should stay if the new URL is under the old URL. &amp;nbsp;Forms Authentication will stay if the URL is in the same ASP.NET application.&lt;/p&gt;
&lt;p&gt;If the new URL is on another site, or server, most likely you will need to re-authenticate. &amp;nbsp;Another option you have is implementing a single-signon scheme where your original site produces an authentication token and injects it in the redirected URL, and the second site can authenticate the user based on that token.&lt;/p&gt;
&lt;p&gt;Hopefully this answers your question.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#12887</link><pubDate>Tue, 18 Dec 2007 07:31:04 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:12887</guid><dc:creator>Bob</dc:creator><description>I don't know why, but in IIS7 when I'm using rewriting the RawUrl from HttpContext... return original url not rewritten url. In II6, IIS5 it returns rewritten url.</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#13436</link><pubDate>Thu, 21 Aug 2008 02:00:11 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13436</guid><dc:creator>Alan Moberg</dc:creator><description>I have had my URL to my e-mail account at Juno.com redirected to another site.  That site is blocked by my spyware  provider.  Result I cannot get to my e-mail account.  Where would I look for that redirection program?  How do I get rid of it?  
I think I have removed the carrier that brought the function in, antivirus2008XP, but I still cannot be certain I got all of it.
Thanks,</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#13439</link><pubDate>Thu, 21 Aug 2008 21:05:59 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13439</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Hi Alan,&lt;/p&gt;
&lt;p&gt;Your question is out of topic here, you'll have better luck trying elsewhere.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#13614</link><pubDate>Thu, 11 Dec 2008 01:17:03 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13614</guid><dc:creator>Eugene</dc:creator><description>Mike,
If all i need is to redirect request from say xyz.com/* to www.xyz.com/*, preserving exact same urls that were requested on iis6, what is the best way to do it, without doing too much work. Looks like by modifying your sample config, it could be done using your module. I am so confused reading all the different posts  on the net. Thanks in advance</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#13802</link><pubDate>Fri, 08 May 2009 03:27:15 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13802</guid><dc:creator>xtnerb</dc:creator><description>&lt;p&gt;i can't seem to compile the sample code. it says Error	1	The command &amp;quot;echo &lt;/p&gt;
&lt;p&gt;copy *.dll ..\..\..\wwwroot\bin&lt;/p&gt;
&lt;p&gt;copy *.pdb ..\..\..\wwwroot\bin&lt;/p&gt;
&lt;p&gt;&amp;quot; exited with code 1.	HttpRedirection&lt;/p&gt;
&lt;p&gt;Could you help me out on this thing. Thanks. &lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#13832</link><pubDate>Thu, 28 May 2009 13:53:53 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13832</guid><dc:creator>Marcel Meyer</dc:creator><description>Dear Mike,
I'm really interested in the server-side rewriting that you mentioned in this article. Can you give us more info/detail about this approach?

Would it work (and would it make sense to architect the solution like this) where I want to decompose my single, large, complex single tenant application into various "domain services/applications", mounted as login.site.com, or products.site.com, or orders.site.com. These application services are then invoked from a multi-tenant application, like acme.com/orders, or acme.com/products, even foo.com/orders, or foo.com/products, but both hosts are actually using the same instances of the application services?

A property of these "domain services" are that they can even respond with the properly formated HTML to AJAX requests, thus spreading the business load and UI rendering to multiple applications.

I've setup a working prototype of this scenario, but as you know, cross site requests are hindering me getting a formatted list of orders via AJAX from products.site.com, if the host is acme.com. 

How can I expose (and should I) products.site.com as acme.com/products and make the client think it's local to the domain?

Any comments will be greatly appreciated!

Kind regards,
Marcel

</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#13899</link><pubDate>Thu, 02 Jul 2009 14:59:41 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13899</guid><dc:creator>tolga</dc:creator><description>    i can't seem to compile the sample code. it says Error 1 The command "echo

    copy *.dll ..\..\..\wwwroot\bin

    copy *.pdb ..\..\..\wwwroot\bin

    " exited with code 1. HttpRedirection

    Could you help me out on this thing. Thanks.

    Best Reggards ????
</description></item><item><title>re: Redirect clients in your application with HttpRedirection module</title><link>http://mvolo.com/blogs/serverside/archive/2007/05/24/Redirect-clients-in-your-application-with-HttpRedirection-module.aspx#14051</link><pubDate>Wed, 02 Dec 2009 02:28:23 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:14051</guid><dc:creator>john keller</dc:creator><description>I have a question as follows :
I have 2 web servers 1 in a DMZ zone (port 80) and a second in our Secure DMZ (SSL). I have a website www.workerbeesredcross.ca and I would like to redirect www.workerbeesredcross.ca from the DMZ site to https://workerbeesredcross.ca on our SDMZ (SSL server farm).
 
Is there a way to to do this?

Thanks in advance.
John</description></item></channel></rss>