<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx</link><description>For the next several entries, I am focusing on this frequently asked topic: How do I rewrite / redirect / forward / mask requests from one URL to another with IIS? Common questions that fall into this topic include: Redirect requests from http://server</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#446752</link><pubDate>Tue, 02 Aug 2005 21:55:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:446752</guid><dc:creator>Mark A. Richman</dc:creator><description>Can you update this article with a HOWTO on exposing &lt;a rel="nofollow" target="_new" href="http://internal via"&gt;http://internal via&lt;/a&gt; &lt;a rel="nofollow" target="_new" href="http://external by"&gt;http://external by&lt;/a&gt; ISAPI proxy?</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#446757</link><pubDate>Tue, 02 Aug 2005 22:19:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:446757</guid><dc:creator>David.Wang</dc:creator><description>&lt;a rel="nofollow" target="_new" href="http://internal via"&gt;http://internal via&lt;/a&gt; &lt;a rel="nofollow" target="_new" href="http://external is"&gt;http://external is&lt;/a&gt; already included by Server-Side Forwarding, which I will eventually get to (see that entire list...).</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#451384</link><pubDate>Sun, 14 Aug 2005 03:53:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:451384</guid><dc:creator>Rahul</dc:creator><description>Hi David, &lt;br&gt;&lt;br&gt;I am waiting to read this article and am particularly interested in Core IIS Serverside redirects. &lt;br&gt;&lt;br&gt;When do you plan to update this? &lt;br&gt;&lt;br&gt;Could you please point me to some other resources in the meantime as I need to configure an installation just now. &lt;br&gt;&lt;br&gt;Rahul (rahulkorlipara@gmail.com)</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#451718</link><pubDate>Mon, 15 Aug 2005 13:35:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:451718</guid><dc:creator>David Wang</dc:creator><description>ISAPI Rewrite would be an example of a commercial implementation of an ISAPI Filter that does Server-Side Redirection and Server-Side Forwarding.&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.isapirewrite.com"&gt;http://www.isapirewrite.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Now, I do not plan on disturbing anyone's business model with my blog entry samples. I am only going to show the basics of how things work and help those that are curious.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#451728</link><pubDate>Mon, 15 Aug 2005 15:01:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:451728</guid><dc:creator>Alex</dc:creator><description>URL Rewrite for MS IIS&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.smalig.com/url_rewrite/"&gt;http://www.smalig.com/url_rewrite/&lt;/a&gt;</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#485772</link><pubDate>Thu, 27 Oct 2005 21:47:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:485772</guid><dc:creator>Douglas Keachie</dc:creator><description>You know,&lt;br&gt;&lt;br&gt;Usually &amp;quot;how to's&amp;quot; are articles that show &amp;quot;how to&amp;quot; actually do something.  Yours is sort of a let's define the terminology around the &amp;quot;how to&amp;quot; in question.&lt;br&gt;&lt;br&gt;I've already spent about an hour bumming around the web looking for a redirect in the following simple situation.&lt;br&gt;&lt;br&gt;I have lots of domain names.  My business model calls for just a few (3) websites (the &amp;quot;Big Three&amp;quot;) which cover everything I'm interested in.  I would like to have it set up so that the cheapo businesscard domains (not the &amp;quot;Big Three&amp;quot;) have a &amp;quot;click to enter&amp;quot; spot.  That &amp;quot;click to enter&amp;quot; causes their browser to go to one of my &amp;quot;Big Three.&amp;quot;  When their browser arrives there, I want the local client side html code to note which cheapo businesscard site they came from, and to automatuically redirect them to the appropriate subdirectory.  Is that really so difficult ?&lt;br&gt;&lt;br&gt;I enjoyed your somewhat pompous but thorough layout of the problems of redirection, although it did not seem to cover this possibility.  I was told that this was do-able. Is it not do-able on a IIS, even if I wish to buy a solution ?  If it is buyable, where or how should I look for this snippet of code ??&lt;br&gt;&lt;br&gt;thanks,&lt;br&gt;&lt;br&gt;Doug Keachie</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#486077</link><pubDate>Fri, 28 Oct 2005 10:11:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:486077</guid><dc:creator>David Wang</dc:creator><description>Doug - I am not certain your scenario even involves redirection, since the user must &amp;quot;click to enter&amp;quot; and that action essentially counts as navigation, not redirection.&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/david.wang/archive/2005/10/27/Domain_Parking_with_IIS_Summary.aspx"&gt;http://blogs.msdn.com/david.wang/archive/2005/10/27/Domain_Parking_with_IIS_Summary.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#486266</link><pubDate>Fri, 28 Oct 2005 19:18:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:486266</guid><dc:creator>Douglas Keachie</dc:creator><description>OK,&lt;br&gt;&lt;br&gt;As it turns out, and cannot make a &amp;quot;Click to Enter&amp;quot; button on the business card site.  I'll literally have to instruct them there on how to cut and paste the addy into their browser bar.&lt;br&gt;&lt;br&gt;&amp;quot;Please highlite the following address, then copy it (CTRL-C), and then find the address bar in your browser, and paste it there (CTRL-v) to see complete details.&amp;quot;&lt;br&gt;&lt;br&gt;http//:www.swland.org&lt;br&gt;&lt;br&gt;&lt;br&gt;I could of course add on all the subdirectory information at this point, for each instance, but it would look &amp;quot;complicated&amp;quot; or &amp;quot;tricky&amp;quot; (dangerous) and so I'm hoping to send them immediately to the appropriate subdir when they hit the main site, www.swland.org, based on the business card site of origin.&lt;br&gt;&lt;br&gt;Is this possible to do this redirection with client side html or other code that is pretty much universally recognized ?  I'll settle for just Windows compatible, if necessary.&lt;br&gt;&lt;br&gt;thanks,&lt;br&gt;&lt;br&gt;Doug</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#486399</link><pubDate>Fri, 28 Oct 2005 23:38:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:486399</guid><dc:creator>Paul Noeldner</dc:creator><description>How to redirect 401.1 using IIS?  It used to work but have recently heard it doesn't in some new release configurations, apparently some kind of security lockdown default?  Others eg 401.3 redirect fine.  </description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#487575</link><pubDate>Tue, 01 Nov 2005 08:45:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:487575</guid><dc:creator>David Wang</dc:creator><description>Paul - please define the type of redirection you wanted to accomplish for 401.1, noting that the only ways for you to know a 401.1 happened are:&lt;br&gt;1. FILE type CustomError of 401.1 is sent&lt;br&gt;2. SF_NOTIFY_ACCESS_DENIED ISAPI filter&lt;br&gt;&lt;br&gt;And neither allow any sort of server-side redirection.&lt;br&gt;&lt;br&gt;Plus, 401.1 means that IIS does not have a valid user token to use for request proceossing, so Server-side redirection/forwarding cannot reasonably expect to work.&lt;br&gt;&lt;br&gt;So, please clarify what you are asking.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#487576</link><pubDate>Tue, 01 Nov 2005 08:50:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:487576</guid><dc:creator>David Wang</dc:creator><description>Doug - I still do not understand why you insist on doing things your way because it doesn't seem easy nor does it seem to work. You do not want people to copy/paste anything (in general, you cannot expect users to do the right thing much less follow instructions).&lt;br&gt;&lt;br&gt;I see no reason why you cannot implement something platform agnostic and that works for all browsers given what I had described earlier, and you have not given a reason why it does not work.&lt;br&gt;&lt;br&gt;I certainly cannot do it for you; I will only tell you it is very possible and very easy. Whether you do it that way, that is up to you.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#487843</link><pubDate>Tue, 01 Nov 2005 23:46:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:487843</guid><dc:creator>Aaron</dc:creator><description>Do you happen to know how to setup a redirect (IIS 6) for the 503 service unavailable message? I figured it would be in the IIS settings but i don't see anything. What i want to do is redirect users to a page saying 'connection limit' reached. Something a little more informative than the default message. I've been looking all day and can't find any details on this. Any help would be appreciated.</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#487857</link><pubDate>Wed, 02 Nov 2005 00:07:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:487857</guid><dc:creator>David Wang</dc:creator><description>Aaron - What you are asking for is not exactly a redirect.&lt;br&gt;&lt;br&gt;The 503 Service Unavailable message is actually sent by HTTP.SYS when the Application Pool is disabled and cannot be customized.&lt;br&gt;&lt;br&gt;HTTP.SYS sends the pre-canned 503 message because the associated Application Pool configured to handled that request is disabled, so it cannot send requests to IIS6 w3wp.exe and hence HTTP.SYS sends the 503 response instead.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>Another one</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#490493</link><pubDate>Tue, 08 Nov 2005 23:15:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:490493</guid><dc:creator>Uwe Keim</dc:creator><description>This is am open source version: &lt;a rel="nofollow" target="_new" href="http://www.iismods.com/"&gt;http://www.iismods.com/&lt;/a&gt;</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#503255</link><pubDate>Tue, 13 Dec 2005 22:58:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:503255</guid><dc:creator>Erick Perez</dc:creator><description>I have the situation to use the Server Side Forwarding or Proxy.&lt;br&gt;I want my main IIS with and SSL certificate to handle and redirect to another IIS, but that all communications gets done with my main IIS in the middle.&lt;br&gt;&lt;br&gt;Comments and or code are welcomed.&lt;br&gt;</description></item><item><title>Great Site</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#507192</link><pubDate>Sat, 24 Dec 2005 05:53:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:507192</guid><dc:creator>Melissa</dc:creator><description>I appreciate that you keep your site going and allow comments. To me feedback is an interesting part of a website... Your site is a very great website and I make your site for my homepage!.</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#510482</link><pubDate>Sun, 08 Jan 2006 02:43:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:510482</guid><dc:creator>Max</dc:creator><description>David, can you please clarify is this issue is a policy or a bug in IIS6? &lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://tinyurl.com/chmjd"&gt;http://tinyurl.com/chmjd&lt;/a&gt;&lt;br&gt;&lt;br&gt;Since IIS6 does not preserve POST verb it kills ASP.NET postback via 40x redirect URL.</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#530944</link><pubDate>Mon, 13 Feb 2006 17:27:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:530944</guid><dc:creator>Dac</dc:creator><description>see &lt;a rel="nofollow" target="_new" href="http://pooling.info"&gt;http://pooling.info&lt;/a&gt; The URL Redirection service</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#531583</link><pubDate>Tue, 14 Feb 2006 08:35:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:531583</guid><dc:creator>Trevor</dc:creator><description>Thanks a bunch David. &amp;nbsp;My URL IIS rewrite filter stopped working when I moved to Server 2003 due to the worker process isolation mode not supporting the SF_NOTIFY_READ_RAW_DATA event. &amp;nbsp;Your suggestion to use the SetHeader(&amp;quot;url&amp;quot;) function in the SF_NOTIFY_PREPROC_HEADERS event worked perfectly. &amp;nbsp;In fact it is a better approach than my original design.&lt;br&gt;&lt;br&gt;Thanks again.&lt;br&gt;&lt;br&gt;Trevor</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#535042</link><pubDate>Sun, 19 Feb 2006 17:34:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535042</guid><dc:creator>Chen</dc:creator><description>Hi, David,&lt;br&gt;&lt;br&gt;I am wondering how to rewrite the &lt;a rel="nofollow" target="_new" href="http://www.polloo.com/namelist.asp/name=daivd"&gt;http://www.polloo.com/namelist.asp/name=daivd&lt;/a&gt; to &lt;a rel="nofollow" target="_new" href="http://www.polloo.com/david"&gt;http://www.polloo.com/david&lt;/a&gt;&lt;br&gt;&lt;br&gt;Could I wirte the script with asp only to impletment it? And how to?&lt;br&gt;&lt;br&gt;Thank you&lt;br&gt;&lt;br&gt;Chen</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#536696</link><pubDate>Wed, 22 Feb 2006 10:50:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536696</guid><dc:creator>David.Wang</dc:creator><description>Chen - what sort of URL redirection do you want to perform? Client-side redirection? Server-side redirection? Please classify it according to the taxonomy I provided to describe your problem and locate possible solution routes.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#540409</link><pubDate>Tue, 28 Feb 2006 10:37:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:540409</guid><dc:creator>Bryant</dc:creator><description>Hi, David, &lt;br&gt;Could you tell me how to force HTTP requests to HTTPS/SSL, and Force HTTPS/SSL requests to HTTP?&lt;br&gt;Thank you </description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#541396</link><pubDate>Wed, 01 Mar 2006 20:53:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:541396</guid><dc:creator>Eyal</dc:creator><description>Hi David.&lt;br&gt;&lt;br&gt;When using the option of:&lt;br&gt;&lt;br&gt;'Client-Side Redirection - The server sends a &amp;quot;302 Redirect&amp;quot; response with a Location: header containing the new URL, and the client makes another request to the new URL'&lt;br&gt;&lt;br&gt;How do you make sure that the client will request the new URL Automatically?&lt;br&gt;Where can I find a sample code for this option?&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Eyal.</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#541526</link><pubDate>Wed, 01 Mar 2006 23:53:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:541526</guid><dc:creator>David.Wang</dc:creator><description>Eyal - it is not possible to make sure that the client will request the new URL automatically.&lt;br&gt;&lt;br&gt;This is HTTP. The server cannot control what the client does outside of sending it a response. The HTTP specification does not say that the client has to redirect automatically.&lt;br&gt;&lt;br&gt;Thus, the server can only give the client hints such as &amp;quot;this is a 302 redirection; here is the address at the Location: header&amp;quot;. The client can choose to ignore the Location: header and/or pop up a dialog if it wants to - such as when a POST is redirected.&lt;br&gt;&lt;br&gt;Client-Side redirection can be performed without writing code. It all depends on what you want to do.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#543857</link><pubDate>Sun, 05 Mar 2006 08:14:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:543857</guid><dc:creator>Dean</dc:creator><description>I don’t believe I see an answer to this scenario #3 Server-Side Forwarding - The server transparently rewrites the request URL to another URL which does NOT remain on the same website as the original. Note the new website can be on another machine, but not necessarily.&lt;br&gt;&lt;br&gt;I’m splitting my site and need to forward links that come to me formatted like this:&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://oldURL.com/oldFolder/showlist.asp?type=2&amp;amp;owner=67"&gt;http://oldURL.com/oldFolder/showlist.asp?type=2&amp;amp;owner=67&lt;/a&gt; &lt;br&gt;&lt;br&gt;They need to be redirected to: &lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://newURL.com/newFolder/showlist.asp?type=2&amp;amp;owner=67"&gt;http://newURL.com/newFolder/showlist.asp?type=2&amp;amp;owner=67&lt;/a&gt; &amp;nbsp;&lt;br&gt;&lt;br&gt;how might this be done using IIS, asp or any combination of either?&lt;br&gt;</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#543933</link><pubDate>Sun, 05 Mar 2006 13:28:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:543933</guid><dc:creator>David.Wang</dc:creator><description>Dean - Server-Side Forwarding is when newURL.com is NEVER visible to the user even though it does the work on behalf of oldURL.com.&lt;br&gt;&lt;br&gt;If newURL.com is supposed to be visible to the user, then this is best done as a Client-Side Redirection using simple 302.&lt;br&gt;&lt;br&gt;//david</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#545046</link><pubDate>Tue, 07 Mar 2006 08:19:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:545046</guid><dc:creator>chen</dc:creator><description>hi, David,&lt;br&gt;&lt;br&gt;Thank you for your reply.&lt;br&gt;&lt;br&gt;I don't understand what do you mean the client-side or server-side. I rent a space but I have no operate right to the server. I can only write some asp script to the server. And I know for Aparch server there is a rewrite url modul to do that, and there are IIS rewrite program to do that on the server. But these both don't fit for me. &lt;br&gt;&lt;br&gt;Do I clear state the question?</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#545188</link><pubDate>Tue, 07 Mar 2006 13:44:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:545188</guid><dc:creator>David.Wang</dc:creator><description>Chen - By client-side or server-side, I mean:&lt;br&gt;&lt;br&gt;When the client makes a request to:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.polloo.com/namelist.asp/name=daivd"&gt;http://www.polloo.com/namelist.asp/name=daivd&lt;/a&gt;&lt;br&gt;&lt;br&gt;Do you want the URL bar in the browser to say:&lt;br&gt;1. &lt;a rel="nofollow" target="_new" href="http://www.polloo.com/namelist.asp/name=daivd"&gt;http://www.polloo.com/namelist.asp/name=daivd&lt;/a&gt;&lt;br&gt;OR &lt;br&gt;2. &lt;a rel="nofollow" target="_new" href="http://www.polloo.com/david"&gt;http://www.polloo.com/david&lt;/a&gt;&lt;br&gt;&lt;br&gt;If you want the browser to say #1 then you use server-side redirection. If you want the browser to say #2 then you use client-side redirection.&lt;br&gt;&lt;br&gt;After you determined what sort of redirection you want to do, you can look through the above index I laid out on how to accomplish the task using the technology and server control you have.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#546397</link><pubDate>Wed, 08 Mar 2006 22:03:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:546397</guid><dc:creator>Erlend</dc:creator><description>Hi David,&lt;br&gt;&lt;br&gt; I wondered if you have ever experienced a problem that is driving me completely nuts ;) I'm performing server-side rewrite through the SF_NOTIFY_PREPROC_HEADERS event and modifying the 'url' with SetHeader. This should be quite straight forward, but unfortunately it hasn't been for me. On the first request to a given url that needs rewriting IIS decides to translate my rewrite into a client side redirect :/ When hiting the back button and retrying the request the rewrite is performed correctly. Closing the browser and retrying it behaves exactly the same way. The only other thing I'm doing in the code is adding a custom header value to be interpreted by the ISAPI extension that eventually processes the request.&lt;br&gt;&lt;br&gt;Do you know of any situations that could lead IIS to send the client side redirect instead of performing the server side rewrite?&lt;br&gt;&lt;br&gt;//Erlend&lt;br&gt;</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#546987</link><pubDate>Thu, 09 Mar 2006 12:34:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:546987</guid><dc:creator>David.Wang</dc:creator><description>Erlend - Can you give the exact request you sent? As well as IIS version.
&lt;br&gt;
&lt;br&gt;Try using WFetch from &lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/windowsserver2003/iis/diagnostictools/default.mspx"&gt;http://www.microsoft.com/windowsserver2003/iis/diagnostictools/default.mspx&lt;/a&gt; to make test requests and see what actually gets returned. I do not trust using the browser to debug issues when an ISAPI is involved because ISAPI can have arbitrary behavior that confuse browsers. You need a dumb client like WFetch so that you know what is really going on.
&lt;br&gt;
&lt;br&gt;I presume you are talking about the URLs that require courtesy redirects - i.e. &lt;a rel="nofollow" target="_new" href="http://server/vdir"&gt;http://server/vdir&lt;/a&gt; where /vdir exists as a folder. In those cases IIS will automatically send back a 302 redirection to &lt;a rel="nofollow" target="_new" href="http://server/vdir"&gt;http://server/vdir&lt;/a&gt;/ , which the browser transparently follows. However, ISAPI Filter sees both requests to &lt;a rel="nofollow" target="_new" href="http://server/vdir"&gt;http://server/vdir&lt;/a&gt; and &lt;a rel="nofollow" target="_new" href="http://server/vdir"&gt;http://server/vdir&lt;/a&gt;/ , so it should be able to rewrite.
&lt;br&gt;
&lt;br&gt;I do not know of any situations where IIS will send a response without first calling SF_NOTIFY_PREPROC_HEADERS (which is what you are claiming)... unless you send a response from SF_NOTIFY_READ_RAW_DATA, but that is ultra-gross.
&lt;br&gt;
&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#547174</link><pubDate>Thu, 09 Mar 2006 18:01:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:547174</guid><dc:creator>Lei</dc:creator><description>Hi David,&lt;br&gt;&lt;br&gt;Thanks for your great article!&lt;br&gt;&lt;br&gt;Currently I need to redirect &lt;a rel="nofollow" target="_new" href="http://server_name/virtual_directory_name/subfolder1/"&gt;http://server_name/virtual_directory_name/subfolder1/&lt;/a&gt;*.* to &lt;a rel="nofollow" target="_new" href="http://server_name/virtual_directory_name/subfolder2/handler.aspx?filename="&gt;http://server_name/virtual_directory_name/subfolder2/handler.aspx?filename=&lt;/a&gt;*.*&lt;br&gt;&lt;br&gt;How to achieve that in IIS? Thank you.</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#547701</link><pubDate>Fri, 10 Mar 2006 00:54:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:547701</guid><dc:creator>David.Wang</dc:creator><description>Lei - Please read my earlier comment to Chen. It is not clear what sort of redirection you want.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#547747</link><pubDate>Fri, 10 Mar 2006 01:17:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:547747</guid><dc:creator>Erlend</dc:creator><description>Hi David,&lt;br&gt;&lt;br&gt;I think I was being alittle unclear. I'm running IIS6 btw.&lt;br&gt;&lt;br&gt;I'm changing the url through SF_NOTIFY_PREPROC_HEADERS and it always gets called. The problem is that on the first call from a browser (I'll try with WFetch but haven't had time yet) IIS sends a 302 back to the browser as a result of my changing the url, but on all subsequent calls the request gets processed like I want it to. I do suspect now though that this could be a single server issue (and might have to do with something being incorrectly installed) because I have tried it on two different servers today and I do not see the same problem.&lt;br&gt;&lt;br&gt;Thanks for you input.&lt;br&gt;&lt;br&gt;//Erlend&lt;br&gt;</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#548201</link><pubDate>Fri, 10 Mar 2006 08:52:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:548201</guid><dc:creator>Lei</dc:creator><description>Hi David,&lt;br&gt;&lt;br&gt;Thank you for your reply!&lt;br&gt;&lt;br&gt;I think I need server-side redirection. Actually, I want all user request from &lt;a rel="nofollow" target="_new" href="http://server_name/virtual_directory_name/map/"&gt;http://server_name/virtual_directory_name/map/&lt;/a&gt;*.* to be redirected to &lt;a rel="nofollow" target="_new" href="http://server_name/virtual_directory_name/main/handler.aspx?filename="&gt;http://server_name/virtual_directory_name/main/handler.aspx?filename=&lt;/a&gt;*.*. Thus, I could use a single file handler.aspx.cs to handle all request from subfolder &amp;quot;map&amp;quot; of the virtual directory.&lt;br&gt;&lt;br&gt;How to implement this in IIS? My IIS version is 5.1. Thanks!&lt;br&gt;&lt;br&gt;//Lei</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#548259</link><pubDate>Fri, 10 Mar 2006 10:43:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:548259</guid><dc:creator>David.Wang</dc:creator><description>Erlend - I do not see anything wrong with IIS sending back a 302 as a result of your changing the URL.&lt;br&gt;&lt;br&gt;Expected behavior depends on the exact URL that was actually processed, IIS configuration for the URL that got processed, Filesystem configuration, and any behavior-modifying ISAPIs configured on the server.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#548267</link><pubDate>Fri, 10 Mar 2006 10:49:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:548267</guid><dc:creator>David.Wang</dc:creator><description>Lei - Please read my earlier comment to Chen.&lt;br&gt;&lt;br&gt;Do you want the user to see:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://server_name/virtual_directory_name/main/handler.aspx?filename="&gt;http://server_name/virtual_directory_name/main/handler.aspx?filename=&lt;/a&gt;*.*. &lt;br&gt;&lt;br&gt;in their browser's Address/URL/Location bar.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#549322</link><pubDate>Sat, 11 Mar 2006 09:59:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:549322</guid><dc:creator>Lei</dc:creator><description>Hi David,&lt;br&gt;&lt;br&gt;I want the user to see: &lt;a rel="nofollow" target="_new" href="http://server_name/virtual_directory_name/map/"&gt;http://server_name/virtual_directory_name/map/&lt;/a&gt;*.* Thus, I think I need server-side redirection. So How to implement? &lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;&lt;br&gt;//Lei</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#549390</link><pubDate>Sat, 11 Mar 2006 13:55:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:549390</guid><dc:creator>David.Wang</dc:creator><description>Lei - ISAPI Filter.&lt;br&gt;&lt;br&gt;I have not filled in that index with links, so you can either:&lt;br&gt;1. Figure it out (not terribly hard)&lt;br&gt;2. Piece it together from my various ISAPI Filter code samples&lt;br&gt;3. Obtain an ISAPI Filter from another vendor for fee (www.isapirewrite.com) or free (www.iismods.com)&lt;br&gt;4. Wait for sample code&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#551136</link><pubDate>Tue, 14 Mar 2006 16:43:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:551136</guid><dc:creator>Lei</dc:creator><description>Hi David,&lt;br&gt;&lt;br&gt;Thank you for your reply!&lt;br&gt;&lt;br&gt;When I locate the subfolder of the virtual directory in IIS, I also can use &amp;quot;redirect to a URL&amp;quot; option to achieve the goal. So I wonder what's the difference between configure this in IIS and using ISAPI filter?&lt;br&gt;&lt;br&gt;By the way, I miss one point in my previous post. I want to redirect all requests to a subfolder to a single .aspx file except a file like a.aspx in that subfolder. Is this possible using ISAPI filter? Could you direct me some reference links about coding ISAPI filter?&lt;br&gt;&lt;br&gt;Really thanks for your solution!&lt;br&gt;&lt;br&gt;//Lei</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#551433</link><pubDate>Tue, 14 Mar 2006 22:38:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:551433</guid><dc:creator>David.Wang</dc:creator><description>Lei - The difference, as I mentioned earlier, is that:&lt;br&gt;1. the UI configuration of &amp;quot;IIS Core (no code) - HttpRedirect &amp;quot;, is only Client-Side Redirection&lt;br&gt;2. while ISAPI filter can be anything you want (notice that ISAPI Filter is under all three categories) - you just need to write the code&lt;br&gt;&lt;br&gt;MSDN contains documentation about ISAPI Filter API, how it works conceptually, and how to use it. This blog also contains lots of information and sample code to do various useful things. You also need to know how to code custom logic like &amp;quot;redirect all requests to a single .aspx file except a file like a.aspx in that subfolder&amp;quot;.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#558228</link><pubDate>Wed, 22 Mar 2006 21:52:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:558228</guid><dc:creator>Jason</dc:creator><description>I'm trying to force IIS to display a custom HTTP 403 page instead of the canned one. &amp;nbsp;I went into IIS and there is no custom errors listing for 403.* so I used Metabase Explorer and added a line to the 6008 HttpErrors under the &amp;quot;root&amp;quot; of my site id. &amp;nbsp;I do get the error when trying to view the custom errors in iis admin, so I know it's there, but I am not able to see this new page...only the canned one.&lt;br&gt;&lt;br&gt;Is there a trick to get that active? &amp;nbsp;I executed a cmd line iisreset and still nothing. &amp;nbsp;My file is in the iishelp/common folder along with the rest of the error .htm files and the entry in the 6008 HttpErrors metabase list matches the other ones, but still no luck.&lt;br&gt;&lt;br&gt;Any help would be appreciated.&lt;br&gt;&lt;br&gt;//Jason</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#570726</link><pubDate>Fri, 07 Apr 2006 14:52:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:570726</guid><dc:creator>Stian</dc:creator><description>Thanks for a good article! &lt;br&gt;&lt;br&gt;I want the users to see &amp;quot;user.domain.com&amp;quot; &lt;br&gt;in their browser's Address/URL/Location bar. &lt;br&gt;&lt;br&gt;The real system will be like this: &amp;nbsp;&lt;br&gt;www.domain.com/folder/user/&lt;br&gt;&lt;br&gt;The reason I want this is to make it look more pretty. &lt;br&gt;&lt;br&gt;Thanks for any reply. </description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#572082</link><pubDate>Mon, 10 Apr 2006 03:07:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:572082</guid><dc:creator>David.Wang</dc:creator><description>Stian - you want Server-Side redirection on IIS, where *.domain.com is configured in DNS to give the IP/Host to come to your ONE website which has this redirection active.&lt;br&gt;&lt;br&gt;Then, have either an ISAPI Filter or ISAPI Extension rewrite the URL based on the Host header.&lt;br&gt;&lt;br&gt;Microsoft has already written such an ISAPI Filter to do this for hosters - contact those folks, get in the program, and get the help and support for free:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/david.wang/archive/2005/09/26/HOWTO_Mass_Shared_Hosting_on_Windows_with_IIS6.aspx"&gt;http://blogs.msdn.com/david.wang/archive/2005/09/26/HOWTO_Mass_Shared_Hosting_on_Windows_with_IIS6.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Note: Since you want mass shared hosting, you don't need the rich website bindings of IIS - and you will see IIS scales just as well if not better than Apache, given comparable extensibility modules and mechanisms.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#576341</link><pubDate>Fri, 14 Apr 2006 14:23:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:576341</guid><dc:creator>David.Wang</dc:creator><description>Hooray, another 10K entry. Been waiting for this for a while now.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#576703</link><pubDate>Sat, 15 Apr 2006 02:05:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:576703</guid><dc:creator>Mark</dc:creator><description>Hi David,&lt;br&gt;&lt;br&gt;I want users to be redirected to and see the following in their browers:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.bluehilldata.com/about/"&gt;http://www.bluehilldata.com/about/&lt;/a&gt;&lt;br&gt;&lt;br&gt;The old file resides at:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.bluehilldata.com/about.html"&gt;http://www.bluehilldata.com/about.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;If I understand correctly, this would be a client-side redirect. &amp;nbsp;Is there a way to accomplish said redirect on IIS in a manner analogous to Apache's .htaccess redirect? &amp;nbsp;That is, can I create a single file in which multiple redirects are defined, without actually maintaining the old files (i.e., about.html) in the root directory?&lt;br&gt;&lt;br&gt;Thanks in advance for your help,&lt;br&gt; &amp;nbsp;Mark</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#576765</link><pubDate>Sat, 15 Apr 2006 04:27:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:576765</guid><dc:creator>David.Wang</dc:creator><description>Mark - sure. In the blog entry, I listed FIVE ways that you can do this on IIS, from declarative configuration analogous to Apache's custom module configuration in .htaccess all the way through customization through code.&lt;br&gt;&lt;br&gt;To what degree of flexibility do you want?&lt;br&gt;&lt;br&gt;For example, the built-in HttpRedirect functionality in IIS can handle this. Or you can use HttpErrors to catch the file-not-found. Or write your own configurable ISAPI Filter or ISAPI Extension.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#577179</link><pubDate>Sun, 16 Apr 2006 18:37:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:577179</guid><dc:creator>paul  smith</dc:creator><description>url &amp;nbsp;update</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#577180</link><pubDate>Sun, 16 Apr 2006 18:37:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:577180</guid><dc:creator>paul  smith</dc:creator><description>ok</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#577250</link><pubDate>Mon, 17 Apr 2006 01:10:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:577250</guid><dc:creator>Mark</dc:creator><description>David,&lt;br&gt;&lt;br&gt;Thanks for the reply. &amp;nbsp;Sorry if I seem a little dense; I'm not a server administrator, but rather an (amateur) web designer.&lt;br&gt;&lt;br&gt;I have about 10 HTML pages that have been relocated, and I'd like to create a single, .htaccess-like file to handle these redirects. &amp;nbsp;Because I don't have the ability to change any of the IIS settings, the file has to be something I can FTP to the server.&lt;br&gt;&lt;br&gt;Any suggestions?&lt;br&gt;&lt;br&gt;Thanks again,&lt;br&gt; &amp;nbsp;Mark</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#577261</link><pubDate>Mon, 17 Apr 2006 02:35:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:577261</guid><dc:creator>David.Wang</dc:creator><description>Mark - Redirection settings are IIS configuration changes which can only be done as server administrator, so you cannot do what you want in the way you want.&lt;br&gt;&lt;br&gt;What you are asking for is &amp;quot;delegated administration of server configuration&amp;quot;, something that Apache loosely offers with .htaccess files. Existing IIS versions do not work like that. IIS7 will support the sort of delegated administration you want in the way you ask (xcopy deploy application+server configuration as files).&lt;br&gt;&lt;br&gt;Thus, for the time being, you will need to maintain old stub files to serve as meta-redirect to the new files.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#585636</link><pubDate>Fri, 28 Apr 2006 04:01:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:585636</guid><dc:creator>Ty</dc:creator><description>David,&lt;br&gt;&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Very nice article. After a couple of hours of hunting, yours was the clearest explanation of the options. I'm curious about why there seems to be such a dearth of info on server-side forwarding. It seems to me that it should be a common deployment strategy to have a web tier in front of an 'application' tier, for performance and security, on large sites. For example, I believe it's common to run Apache (alone) in front of, say, WebLogic, and serve static data from the Apache web tier, and dynamic data from the Weblogic app tier. Now, in the Microsoft world, this same architecture would be IIS locked down and acting only as a web server in the web tier for static content, and IIS running as a .NET app server on the app tier. This gives you some &amp;nbsp;load benifits, some security benifits (only app tier can touch databases, for example, with web tier on DMZ). &amp;nbsp;But this does require server-side forwarding. So why isn't this a well-known technique with tools (ISAPI filters) supplied by Microsoft? I must be wrong - it must not be common at all. What do you think? Thanks again!&lt;br&gt;&lt;br&gt; &amp;nbsp;--Ty </description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#585846</link><pubDate>Fri, 28 Apr 2006 10:22:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:585846</guid><dc:creator>David.Wang</dc:creator><description>Ty - What you want to do is best done with Microsoft ISA Server (firewall + reverse proxy + forward proxy). It is designed to properly resolve and securely re-route network traffic between multiple network segments at the right networking layer. While you CAN do those tasks with a web server, you should not - and that is why Microsoft does not supply it. Just because many people like to do something does not make it "right"; it only means it is&amp;nbsp;popular.&lt;BR&gt;&lt;BR&gt;The lone Apache running mod_proxy and mod_forwarder is basically poor-man's implementation of ISA. It "works", sorta, but it has major problems such as: &lt;BR&gt;1. It is level 6/7 routing - inefficient networking &lt;BR&gt;2. It is level 6/7 routing - effectively considered a middle-man attack against most every security protocol such as SSL, SSL Client Certificate, or Kerberos &lt;BR&gt;&lt;BR&gt;In other words, the model you describe primarily works for the anonymous, insecure web - like mass web hosting, company web presence, toy authentication schemes like Basic, Digest, or custom cookie auth supported by Apache, etc. &lt;BR&gt;&lt;BR&gt;If you want to build secure applications to make financial transactions, that entire infrastructure really does not work. What you end up doing is either settling for a weaker authentication solution that "works" but you pray you never get attacked, or you re-invent Kerberos and re-implement it. &lt;BR&gt;&lt;BR&gt;I will put it this way - everytime you use or build a custom authentication / authorization scheme, it is probably less secure than what is offered for free in Microsoft Windows. Most of the time, custom authentication protocol gets "invented" because the author did not understand existing open standards and brazenly thinks he is good enough. This is why I trust the open standards like Kerberos and SSL. I do not trust random custom authentication scheme... &lt;BR&gt;&lt;BR&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#587880</link><pubDate>Mon, 01 May 2006 23:46:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:587880</guid><dc:creator>Ty</dc:creator><description>Thanks David. I'm now looking into ISA. Is this a widely used architecture in the industry? In other words, do folks commonly implement and deploy 2- and 3-tier architectures using ISA/IIS/DB? Is it done primarily for security or performance, or both? </description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#588843</link><pubDate>Wed, 03 May 2006 04:45:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:588843</guid><dc:creator>David.Wang</dc:creator><description>Ty - I cannot really comment because I am not involved with the deployment/design/architecture of IIS solutions. Other blog readers probably have better experience/comments/recommendations than I.&lt;br&gt;&lt;br&gt;From my perspective, those are all arbitrary design-decisions specific to a given deployment and are mostly requirements solvable by existing ISA/IIS/DB features.&lt;br&gt;&lt;br&gt;For example, security is always relative. Some people are ok with web servers directly on the Internet; others want web servers behind a firewall; some want a DMZ; others do not. Similarly for performance. Some people are ok with a central proxy server caching; other's don't care; and others want individual IIS servers to cache; etc. It all depends on requirements, and everyone differs. You should do whatever makes sense, not merely what &amp;quot;everyone else is doing&amp;quot;. Though I would not be surprised to see everyone independently coming to the same conclusions since we are logical. :-)&lt;br&gt;&lt;br&gt;I am on the IIS product team, so I look at the problem space a little more technically than practically.&lt;br&gt;&lt;br&gt;i.e. I care about level 6/7 routing being inefficient and a man-in-the-middle security attack... while most Consultants/Implementers just want to &amp;quot;make it work&amp;quot; and usually do not care about such details or just wants them &amp;quot;solved&amp;quot;.&lt;br&gt;&lt;br&gt;From my viewpoint, ISA/IIS/DB is the most logical arrangement because that is how we designed it. ISA provides &amp;quot;Edge&amp;quot; services like Firewall, Forward Proxy for internal Clients and Reverse-Proxy for internal servers. So, ISA supports sophisticated network routing as well as easily &amp;quot;publish&amp;quot; internal IIS web servers to be visible to the outside world. Of course, ISA also supports Caching of IIS, just as IIS supports kernel-mode caching as well as user-mode caching of its responses. Meanwhile, IIS does not assume that there is security protection around it, so it comes pre-secured and locked down so that it can run directly on the Internet, but for added functionality some people may open more ports or run more sensitive apps on IIS... and then you'd need to arrange for better protection.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#588848</link><pubDate>Wed, 03 May 2006 04:54:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:588848</guid><dc:creator>frank</dc:creator><description>David, it's great that are love Microsoft so much, but when you say &amp;quot;While you CAN do those tasks with a web server, you should not - and that is why Microsoft does not supply it.&amp;quot; - it seems laughable that Microsoft is finally doing just that in their IIS 7.0 Beta.&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://technet2.microsoft.com/WindowsServer/en/Library/934bf23a-6e23-49f7-8c66-5e598fc959ad1033.mspx"&gt;http://technet2.microsoft.com/WindowsServer/en/Library/934bf23a-6e23-49f7-8c66-5e598fc959ad1033.mspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Considering how easy it is, it is pretty pathetic that it took them 7 major versions to get in there...</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#589003</link><pubDate>Wed, 03 May 2006 11:35:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:589003</guid><dc:creator>David.Wang</dc:creator><description>frank - You're not the only person that does not understand, so you need to read this blog entry:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/david.wang/archive/2006/04/13/IIS7_Product_or_Platform.aspx"&gt;http://blogs.msdn.com/david.wang/archive/2006/04/13/IIS7_Product_or_Platform.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Basically, IIS has never been treated like a competitive product. It has been treated as a platform that just needed to be &amp;quot;good enough&amp;quot; to provide for the needs of other Microsoft servers/applications.&lt;br&gt;&lt;br&gt;Hence, because ISA, Exchange, Sharepoint, FrontPage, etc exist to do various tasks, IIS does not do them and our architecture gets skewed as well.&lt;br&gt;&lt;br&gt;For example:&lt;br&gt;1. We hacked major features in IIS for Exchange because they needed it, and eventually no one ends up using it.&lt;br&gt;2. ISA is the product to do reverse-proxy and IIS is inefficient layer to do reverse-proxy, there is no motive for the IIS team to do it. Never mind that mod_proxy exists because IIS is not a &amp;quot;product&amp;quot; to compete in the webserver space. And since IIS is not competing in the webserver space, it affects decisions in the overall extensibility API.&lt;br&gt;3. IIS3/4 existed to push ASP; IIS5/6 existed to fix problem of bad user apps. IIS7 exists to lay the foundation to compete in the web server space.&lt;br&gt;&lt;br&gt;From my perspective, it is pretty pathetic that:&lt;br&gt;1. Apache loses market share to a non-competitor like IIS&lt;br&gt;2. IIS took so long to get a product-like identity&lt;br&gt;&lt;br&gt;So, I suggest that you simply be happy that Microsoft is taking interest in the web server space and get ready to see *real* competition and improvements in this space. In other words, see IIS7 like our first version as a product in the web server space. That's how we see it.&lt;br&gt;&lt;br&gt;And, if you think mod_proxy or RequestForwarder is &amp;quot;easy&amp;quot;, then think again. The maintainer of mod_proxy will tell you about its difficulties, and we also know what is not done.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#589242</link><pubDate>Wed, 03 May 2006 19:23:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:589242</guid><dc:creator>frank</dc:creator><description>David, people use IIS because they are locked into using a Microsoft solution for everything. If IIS was a stand alone product from a stand alone company it would have died a quiet death years ago.</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#589477</link><pubDate>Thu, 04 May 2006 01:19:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:589477</guid><dc:creator>David.Wang</dc:creator><description>frank - thanks for finally agreeing with my point. If IIS was stand alone and treated as a product by Microsoft it probably would have changed long ago, too.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#589737</link><pubDate>Thu, 04 May 2006 10:47:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:589737</guid><dc:creator>frank</dc:creator><description>Yes, we agree. It is a piece of shit, and has been for years. Good luck with version 7.0. I hope it is a re-write.</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#589784</link><pubDate>Thu, 04 May 2006 13:35:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:589784</guid><dc:creator>David.Wang</dc:creator><description>frank - ... thanks.&lt;br&gt;&lt;br&gt;However, it sounds like you are just talking rhetoric because if you've even seen/used IIS5 and IIS6, you should immediately know that IIS6 is already the engineering rewrite you talk about. IIS7 is merely the refactoring of that rewrite into a completely open, modular, and componentized architecture (itself a huge undertaking).&lt;br&gt;&lt;br&gt;IIS6 is already very well received and very easy to adopt. Marketing/Evangelism have very little problems with IIS6, so you will start seeing big market share movements (check out the last six months of Netcraft for world-wide &amp;quot;market share&amp;quot;). It is mostly irrational customer resistance that make it interesting.&lt;br&gt;&lt;br&gt;And if it is not obvious already, IIS7 will be a classic &amp;quot;embrace and extend&amp;quot; aimed right at the big design flaws inherent in Apache due to its quest to be cross-platform.&lt;br&gt;&lt;br&gt;Yup, it will be fun to have competition, and the best part is that the customer will win. Hard for you to argue against that. ;-)&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#590896</link><pubDate>Fri, 05 May 2006 20:13:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:590896</guid><dc:creator>Aaron</dc:creator><description>David, I have a situation where I have one main website that serves content for multiple data-driven websites. These little websites each have their own domain name. I want to do the following:&lt;br&gt;&lt;br&gt;when a user types in mysite.com, have their browser show:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.mysite.com"&gt;http://www.mysite.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;but the content will actually come from www.mybigsite.com?siteid=23&lt;br&gt;&lt;br&gt;Can you tell me how to achieve this with IIS 6/WIN2k3 ?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Aaron&lt;br&gt;&lt;br&gt;</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#590897</link><pubDate>Fri, 05 May 2006 20:15:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:590897</guid><dc:creator>Aaron</dc:creator><description>David, I have a situation where I have one main website that serves content for multiple data-driven websites. These little websites each have their own domain name. I want to do the following:
&lt;br&gt;
&lt;br&gt;when a user types in mysite.com, have their browser show:
&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.mysite.com"&gt;http://www.mysite.com&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;but the content will actually come from www.mybigsite.com?siteid=23
&lt;br&gt;
&lt;br&gt;Can you tell me how to achieve this with IIS 6/WIN2k3 ?
&lt;br&gt;
&lt;br&gt;Thanks,
&lt;br&gt;Aaron
&lt;br&gt;(aaronmurray &amp;nbsp; @ &amp;nbsp; msn.com) can you email me when you post a reply? Thanks
&lt;br&gt;
&lt;br&gt;</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#596059</link><pubDate>Fri, 12 May 2006 15:06:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:596059</guid><dc:creator>David.Wang</dc:creator><description>Aaron - you want Server-Side Redirection.&lt;br&gt;&lt;br&gt;As I indicated earlier, it can be achieved with IIS6 and requires an extensibility module. You can either write the module, find a free one, or purchase one.&lt;br&gt;&lt;br&gt;This blog entry's comments mention several choices that you should investigate and pursue.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#598424</link><pubDate>Tue, 16 May 2006 02:40:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:598424</guid><dc:creator>Khan</dc:creator><description>Hi David, Although I have read the entire article and new to .net I have the following question.&lt;br&gt;I am trying to achieve a rewrite or whatever I can do to not change the url in the follwoing scenario.&lt;br&gt;site resites at &lt;a rel="nofollow" target="_new" href="http://www.mysite.com/"&gt;http://www.mysite.com/&lt;/a&gt;&lt;br&gt;Have shared ssl space on &lt;br&gt;&lt;a rel="nofollow" target="_new" href="https://ssl-shared.com"&gt;https://ssl-shared.com&lt;/a&gt;&lt;br&gt;When the user is on&lt;br&gt;www.mysite.com/whateverpage&lt;br&gt;I would like the site to bring in the page from the shared ssl and for the address to remain as is. &amp;nbsp;Can you shed some light&lt;br&gt;Thanks</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#598426</link><pubDate>Tue, 16 May 2006 02:42:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:598426</guid><dc:creator>Khan</dc:creator><description>Just forgot to mention I have no control over the admin of the server, but can write code, so if the job can be done with .net it would be brilliant.</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#621230</link><pubDate>Thu, 08 Jun 2006 01:15:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:621230</guid><dc:creator>DotNetInterop</dc:creator><description>Another option for a free IIS mod_rewrite type thing - &lt;a rel="nofollow" target="_new" href="http://cheeso.members.winisp.net/IIRF.aspx"&gt;http://cheeso.members.winisp.net/IIRF.aspx&lt;/a&gt; . &lt;br&gt;It does regular expressions, works with IIS5 or IIS6, includes RewriteCond, and does redirects. &lt;br&gt;</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#628363</link><pubDate>Mon, 12 Jun 2006 19:50:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:628363</guid><dc:creator>Leah</dc:creator><description>For a planned outage, I need to redirect 15 SSL sites to 1 non-SLL site. &amp;nbsp;How do I redirect SSL to Non-SSL? &amp;nbsp;&lt;br&gt;&lt;br&gt;THANK YOU!</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#629221</link><pubDate>Tue, 13 Jun 2006 10:30:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:629221</guid><dc:creator>David.Wang</dc:creator><description>Leah - If the SSL sites themselves need to be down (i.e. you are doing something with the server itself), then you need to do the redirection at the DNS or Network router stage. If the SSL sites and the server itself is down, IIS obviously cannot perform any redirection so you need to do it at the network upstream.&lt;br&gt;&lt;br&gt;If the SSL sites themselves remain operational during the outage, then simply configure the IIS &amp;quot;HTTP Redirection&amp;quot; property of each SSL website to point to the non-SSL website. See IIS documentation on MSDN for more details.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#689623</link><pubDate>Sat, 05 Aug 2006 20:35:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:689623</guid><dc:creator>James</dc:creator><description>David - Great article. I think I'm closer to understanding all the redirections.&lt;br&gt;&lt;br&gt;I'm assuming this is server side redirection. This is for sharepoint.&lt;br&gt;&lt;br&gt;The orginal address is: &lt;a rel="nofollow" target="_new" href="http://www.server.com/sites/user"&gt;http://www.server.com/sites/user&lt;/a&gt;&lt;br&gt;&lt;br&gt;To make it easier for users I'd like to have: &lt;a rel="nofollow" target="_new" href="http://user1.server.com"&gt;http://user1.server.com&lt;/a&gt; and be redirected to the original address.&lt;br&gt;&lt;br&gt;This is just for ease of use. Once redirected they can see the original address.&lt;br&gt;&lt;br&gt;I saw your reply to Stian for hosters. Is that what I would use or is there a easier way for me?&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#693328</link><pubDate>Wed, 09 Aug 2006 17:45:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:693328</guid><dc:creator>djs</dc:creator><description>Am I missing something or is there absolutly nothing on your site that actually describes how to do any of these redirection techniques?&lt;br&gt;</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#694165</link><pubDate>Thu, 10 Aug 2006 11:17:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:694165</guid><dc:creator>David.Wang</dc:creator><description>djs - yeah, I have not gotten around to fleshing out this index entry with example configurations and code samples.&lt;br&gt;&lt;br&gt;I have just provided the taxonomy to categorize and cover this problem space so that people can commonly communicate solutions. On its own, it is already sufficient enough to help many people identify/resolve their issue.&lt;br&gt;&lt;br&gt;I may come back to flesh out some parts of this problem space, but I will not provide/support coded solutions. Only sample, illustrative code.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#727864</link><pubDate>Mon, 28 Aug 2006 08:24:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:727864</guid><dc:creator>Amit</dc:creator><description>David,&lt;br&gt;&lt;br&gt;I want to redirect the http request from IIS6 to 10g server.(http request means jsp and oracle forms from IIS.client request for jsp and oracle but it needs to redirect to 10g AS.)&lt;br&gt;&lt;br&gt;</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#728166</link><pubDate>Mon, 28 Aug 2006 13:46:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:728166</guid><dc:creator>David.Wang</dc:creator><description>Amit - can you clarify the exact type of redirection that you want, based on the classification outlined in this blog entry?&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#732406</link><pubDate>Thu, 31 Aug 2006 00:19:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:732406</guid><dc:creator>Suhas</dc:creator><description>Hi David,&lt;br&gt;&lt;br&gt;I want to redirect to a local IP address in my LAN network connected to the machine running IIS so that externally I can access the internal IP address of LAN.&lt;br&gt;&lt;br&gt;&lt;br&gt;-Suhas</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#748034</link><pubDate>Sat, 09 Sep 2006 22:50:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:748034</guid><dc:creator>Eamon</dc:creator><description>Hey David,&lt;br&gt;&lt;br&gt;No questions from me, just wanted to say good work on the post. Was very informative, helped clarify a lot of things and pointed me in the right direction. Needless to say, thanks to your post I got my reverse proxy configuration sorted with everything up and running the way it should.&lt;br&gt;&lt;br&gt;Many thanks,&lt;br&gt;-Eamon</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#775620</link><pubDate>Thu, 28 Sep 2006 19:06:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:775620</guid><dc:creator>Paul</dc:creator><description>Hi,&lt;br&gt;&lt;br&gt;I have a subdomain in a website. I kinda got it for free. now I also have a free webhosting and I want to forward any requests made to my subdomain to my webhost. eg:&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://myname.srv1.com/paul/about.html"&gt;http://myname.srv1.com/paul/about.html&lt;/a&gt;&lt;br&gt;this would display the &lt;a rel="nofollow" target="_new" href="http://mynamesrv.com/paul/about.hml"&gt;http://mynamesrv.com/paul/about.hml&lt;/a&gt;&lt;br&gt;but the url would not change.&lt;br&gt;&lt;br&gt;The problem is I dont have access to their IIS configuraion. Al I can do is upload a file to it. So could I do this using thje web.config mod?</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#777568</link><pubDate>Sat, 30 Sep 2006 02:48:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:777568</guid><dc:creator>iiscool</dc:creator><description>Paul - I am guessing that your old hoster supports asp\asp.net, so in your global.asa, read the original url(/paul/about.html), modify it to &lt;a rel="nofollow" target="_new" href="http://mynamesrv.com/paul/about.html"&gt;http://mynamesrv.com/paul/about.html&lt;/a&gt; &amp;nbsp;and do a response.redirect. This will let the client (say, IE) know that the url has now changed to &lt;a rel="nofollow" target="_new" href="http://mynamesrv.com/paul/about.html"&gt;http://mynamesrv.com/paul/about.html&lt;/a&gt; and it automatically requests the new url seemlessly.</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#3168070</link><pubDate>Fri, 08 Jun 2007 22:54:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3168070</guid><dc:creator>Alexey</dc:creator><description>&lt;p&gt;Here is a question that has caused me a lot of sleepless hours already.&lt;/p&gt;
&lt;p&gt;First - some background: &lt;/p&gt;
&lt;p&gt;I have a &amp;quot;replicated&amp;quot; site - in effect, it's a database-driven app that displays different contact information depending on the URL that was entered. &amp;nbsp;So for example, when I enter &amp;quot;www.mydomain.com/Alexey&amp;quot; the page that will be brought up will have my contact info. &amp;nbsp;However, what makes this site &amp;quot;replicated&amp;quot; is the fact that virtual directory &amp;quot;alexey&amp;quot; does not in fact exist within the site. &amp;nbsp;The 404 error is configured in IIS to redirect to a custom handler that parses the URL, uses the dummy virtual directory to do a database lookup, places some info in session variables and then builds the real URL based on this information retrieved from the database (the real URL may look someting like &amp;quot;www.mydomain.com/sites/11/areas/1/default.aspx?myVar=5&amp;quot;, where all the numeric portions are values that came back from DB, and those ARE real virtual directories)&lt;/p&gt;
&lt;p&gt;Now - the Question:&lt;/p&gt;
&lt;p&gt;I want to be able to maintain that pretty (but nonexistent!) &amp;quot;www.mydomain.com/Alexey&amp;quot; URL throughout the users browsing of the site. &amp;nbsp;Whether or not actual page names appear at the end of it is immaterial - the main thing I care about is that the main portion of the URL does not change into that long and convoluted one. &amp;nbsp;This would be an example of Server Redirect, but I am having difficulty getting it to work with non-existent virtual directories. &amp;nbsp;Can you offer any advice?&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#3168150</link><pubDate>Fri, 08 Jun 2007 23:03:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3168150</guid><dc:creator>Alexey</dc:creator><description>&lt;p&gt;Oh, and something I forgot to mention - these database entries are created dynamically as users sign up on the site, so I never know at any given point what &amp;quot;dummy&amp;quot; virtual directory may exist in my database. &amp;nbsp;There could be hundreds, even thousands, and it is not feasible for me to maintain any kind of a config file (like most of the commercial URL rewrites seem to require). &amp;nbsp;I need for this functionality to work &amp;quot;on-the-fly&amp;quot;, preferably something I can call from the code-behind .VB file of my app.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#3493960</link><pubDate>Sun, 24 Jun 2007 09:35:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3493960</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Alexey - I would not bother with non-existent virtual directories because that is an artifact of your implementation choice of using the 404 custom error to redirect, which really does not suffice for your needs.&lt;/p&gt;
&lt;p&gt;You have a custom URL mapping. The mapping has to be stored somewhere, either in a config file or dynamically calculated by code stored inside an ISAPI Filter that does the rewriting.&lt;/p&gt;
&lt;p&gt;Since you want to maintain the illusion of the vanity URL to the end-user, you must also change all outgoing response URLs to map back to the vanity URL, or else the end-user will see the convoluted URLs again.&lt;/p&gt;
&lt;p&gt;You will likely have to write an ISAPI Filter to route requests from vanity URL to convoluted URL, and since the ASP.Net application will only see its URL as the convoluted URL, you will either need to pass the vanity URL around, or write an ASP.Net httpModule to filter the response and munge any convoluted URL back to vanity URL.&lt;/p&gt;
&lt;p&gt;It is at this point that you wish the ASP.Net application itself directly supports vanity URL instead of you retro-fitting hacks to give 85% functionality and 50% performance.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#3679265</link><pubDate>Wed, 04 Jul 2007 04:45:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3679265</guid><dc:creator>Naica</dc:creator><description>&lt;p&gt;David,&lt;/p&gt;
&lt;p&gt;I have an web app that shows in a frame ASP.NET 1.1 pages. The web app is used from outside our internal network so it goes through the firewall. In order to call an aspx page I have to redirect from app to something like:&lt;/p&gt;
&lt;p&gt;www.blablabla.com.au/vd1/mypage.aspx&lt;/p&gt;
&lt;p&gt;www.blablabla.com.au is mapped to our web site (IIS 6.0) using port 1004, and vd1 is a virtual directory under the web site and this is where the mypage.aspx sits.&lt;/p&gt;
&lt;p&gt;All worked fine up to now, and still work as long the new pages we create are in ASP.NET 1.1.&lt;/p&gt;
&lt;p&gt;I developed a page in ASP.NET 2.0 and put it in vd1 as mynewpage.aspx. It works but some things failed to work (session is lost, AJAX not working properly...) so I decided to create a new web site on same web server, let's say myws and then deployed my page there. All fine it works perfect, but now I can't access the page from main app because www.blablabla.com.au points to the old web site and obviously the page can't be found there.&lt;/p&gt;
&lt;p&gt;Now comes the question. How can I keep my new aspx page on my new web site and do a redirect to this web site when page is called from client.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#4284291</link><pubDate>Wed, 08 Aug 2007 02:09:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4284291</guid><dc:creator>brad.eckrose@gmail.com</dc:creator><description>&lt;p&gt;David,&lt;/p&gt;
&lt;p&gt;I'm interested in the server-side redirection using the IIS &amp;quot;Core&amp;quot; (no code involved) - IIsWebFile and ScriptMaps technique.&lt;/p&gt;
&lt;p&gt;I believe you use the IIsWebFile to set up default file handling and then add the ScriptMap property to route all the traffic to some dll to do the redirection.&lt;/p&gt;
&lt;p&gt;I don't understand what .dll to use for the script processor. &amp;nbsp;Is it aspnet_isapi.dll? &amp;nbsp;How do I tell it the target server and port?&lt;/p&gt;
&lt;p&gt;The larger goal is this:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://publicserver/mymap"&gt;http://publicserver/mymap&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;must transparently redirect incoming requests to:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://privatedomain.mymapserver:?80?/"&gt;http://privatedomain.mymapserver:?80?/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;--Brad&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#4291605</link><pubDate>Wed, 08 Aug 2007 13:27:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4291605</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Brad - I do not see how your goal is Server-Side Redirection.&lt;/p&gt;
&lt;p&gt;You want to rewrite URLs between two different websites, which is Server-Side Forwarding.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#4293732</link><pubDate>Wed, 08 Aug 2007 18:07:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4293732</guid><dc:creator>brad.eckrose@gmail.com</dc:creator><description>&lt;p&gt;David,&lt;/p&gt;
&lt;p&gt;Per your taxonomy:&lt;/p&gt;
&lt;p&gt;&amp;quot;Server-Side Redirection &amp;nbsp;- The server transparently rewrites the request URL to another URL which remains on the same website as the original.&amp;quot;&lt;/p&gt;
&lt;p&gt;If I understand what you mean by &amp;quot;remains on the same website as the original&amp;quot; as the URL in the address bar does not change, then this is what I want.&lt;/p&gt;
&lt;p&gt;Let me rephrase the proposition this as: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://publicserver.com:mapport#/mymap"&gt;http://publicserver.com:mapport#/mymap&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;must transparently redirect incoming requests to:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://privatedomain.internaldns.mymapserver:?80?/"&gt;http://privatedomain.internaldns.mymapserver:?80?/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and the user and more importantly, his browser, must still believe he is on:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://publicserver:mapport#/mymap"&gt;http://publicserver:mapport#/mymap&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I believe the laypersons lingo for what I'm trying to do is &amp;quot;reverse proxy&amp;quot; where the proxy device is the only device with a public ip address and direct access to the outside internet -- and it also contains an private ip address on our internal network and can act as a sort of bridge.&lt;/p&gt;
&lt;p&gt;Granted, I'm not a taxonomist, and I'm new to isapi extensions and filters and web server and tcpip configuration on any platform. &amp;nbsp;If you can point me to learning resources, I will refrain from re-asking questions here which may be better suited to another forum.&lt;/p&gt;
&lt;p&gt;After rescanning the post history I see you've responded to &amp;quot;stian&amp;quot; in April 2006 which may contain some information that I have missed. &amp;nbsp;I will continue digging.&lt;/p&gt;
&lt;p&gt;--brad&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#4621643</link><pubDate>Wed, 29 Aug 2007 04:50:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4621643</guid><dc:creator>rllaneis</dc:creator><description>&lt;p&gt;i'm thinking of doing server-side forwarding, basically:&lt;/p&gt;
&lt;p&gt;portal.mycompany.net/1234 -&amp;gt; apps.mycompany.net (on a different machine), where the client still sees &amp;quot;portal.mycompany.net/1234&amp;quot;&lt;/p&gt;
&lt;p&gt;these sites are behind ISA, do i need to publish apps.mycompany.net or will the portal.mycompany.net publishing rule will suffice?&lt;/p&gt;
&lt;p&gt;i have yet to start this, so i'm open for suggestions and changes, the goal is that the client access our portal site and click on a link inside it that will redirect them to our apps site without knowing so, meaning the url is still the portal site link (e.g. portal.mycompany.net/1234)&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#4631185</link><pubDate>Wed, 29 Aug 2007 19:37:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4631185</guid><dc:creator>Dale Leonard</dc:creator><description>&lt;p&gt;I've been banging my head over this one for a few days.&lt;/p&gt;
&lt;p&gt;I have a customer that is trying to make sure &lt;a rel="nofollow" target="_new" href="http://domain.com"&gt;http://domain.com&lt;/a&gt; 301 redirects to &lt;a rel="nofollow" target="_new" href="http://www.domain.com"&gt;http://www.domain.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;They have some ASP pages and some such. &lt;/p&gt;
&lt;p&gt;Dale&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#4647956</link><pubDate>Thu, 30 Aug 2007 17:32:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4647956</guid><dc:creator>steven swink</dc:creator><description>&lt;p&gt;I'd like to accomplish something similar to Myspace's vanity url. i.e. www.thissite.com/username. I'd like for users to use a vanity url to access thier dynamically generated web page without changing the url in the browser. When a user requests the page www.thissite.com/username, I need to run some code that will parse the username (I guess using GET or similar), match the username to a database entry that holds specific information about that user's page (myspace) and build the corresponding HTML. Is this possible with a ISAPI filter?&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#5129980</link><pubDate>Wed, 26 Sep 2007 00:50:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5129980</guid><dc:creator>Sean</dc:creator><description>&lt;p&gt;So how do you do it? &amp;nbsp;I want to map &lt;a rel="nofollow" target="_new" href="http://domain.com/file.pdf"&gt;http://domain.com/file.pdf&lt;/a&gt; to &lt;a rel="nofollow" target="_new" href="http://domain.com/my_fancy.asp"&gt;http://domain.com/my_fancy.asp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That is easy to do in java but how do you do it in IIS 4?&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#5175168</link><pubDate>Fri, 28 Sep 2007 02:47:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5175168</guid><dc:creator>drupal</dc:creator><description>&lt;p&gt;Here is another way to Redirect www to non www version of site&lt;/p&gt;
&lt;p&gt;Options +FollowSymLinks &lt;/p&gt;
&lt;p&gt;RewriteEngine on&lt;/p&gt;
&lt;p&gt;RewriteCond %{HTTP_HOST} .&lt;/p&gt;
&lt;p&gt;RewriteCond %{HTTP_HOST} !^example\.com&lt;/p&gt;
&lt;p&gt;RewriteRule (.*) &lt;a rel="nofollow" target="_new" href="http://example.com/"&gt;http://example.com/&lt;/a&gt;$1 [R=301,L]&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#5487531</link><pubDate>Wed, 17 Oct 2007 11:59:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5487531</guid><dc:creator>André</dc:creator><description>&lt;p&gt;I have a domain called www.lomas21.es&lt;/p&gt;
&lt;p&gt;The real stuff is located in www.solicon.com.es/lomas21/.&lt;/p&gt;
&lt;p&gt;On the server www.lomas21.es is masked forwarded to www.solicon.com.es/lomas21/&lt;/p&gt;
&lt;p&gt;Everything was working just fine... BUT... &lt;/p&gt;
&lt;p&gt;When I started to use AJAX it only works nice when the URL www.solicon.com.es/lomas21/ is used. From www.lomas21.es the nice AJAX interface does not work. It rewrites the whole page!&lt;/p&gt;
&lt;p&gt;To understand me: go to the URL&amp;#180;s and click &amp;quot;Cinturones&amp;quot;&lt;/p&gt;
&lt;p&gt;Can somebody give me the solucion? I am really lost for 2 weeks now...&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#6647151</link><pubDate>Mon, 03 Dec 2007 23:28:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6647151</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;David,&lt;/p&gt;
&lt;p&gt;For server-side redirection, can you talk to the choice of ISAPI filter versus ISAPI extension? Am I right in thinking that they are very similar but that the filter is site-wide whereas the extension can be different on different virtua directories within the site&amp;gt;&lt;/p&gt;
&lt;p&gt;Thanks for a great site.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#6684544</link><pubDate>Thu, 06 Dec 2007 23:53:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6684544</guid><dc:creator>Johan</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Currently working with CMS which also implements isapi filters. My problem is this: cms has a little bug, if you put yout URL as &lt;a rel="nofollow" target="_new" href="http://server/cultures/en-us/site"&gt;http://server/cultures/en-us/site&lt;/a&gt; the request fails as there is no trailing / (should read &lt;a rel="nofollow" target="_new" href="http://server/cultures/en-us/site"&gt;http://server/cultures/en-us/site&lt;/a&gt;/ )&lt;/p&gt;
&lt;p&gt;What i was thinking is creating a filter that adds the / if it was omitted. Then, add my filter above cms filter. &lt;/p&gt;
&lt;p&gt;I used getHeader, do my check and add a &amp;quot;/&amp;quot; if required, then setheader my new url. That part works, the problem is the site loads but cms filters werent applied (its almost that after my filter finishes it skips over the rest of the filters in the isapi list in iis.)&lt;/p&gt;
&lt;p&gt;Any ideas? iis 6.&lt;/p&gt;
&lt;p&gt;Thanks, Johan&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#6728262</link><pubDate>Tue, 11 Dec 2007 01:50:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6728262</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;David,&lt;/p&gt;
&lt;p&gt;First my environment is IIS6.0 and ASP.NET 2.0.&lt;/p&gt;
&lt;p&gt;Let's say that I have a request come in &amp;quot;appl.aspx?someparams&amp;quot; and I want to redirect that to &amp;quot;somepage.special&amp;quot; to be handled by whatever ISAPI extension is configured to handle &amp;quot;.special&amp;quot;, then how can I do this? Maybe the &amp;quot;somepage.special&amp;quot; came from a database lookup.&lt;/p&gt;
&lt;p&gt;I looked at a HttpModule in the ASP.NET pipeline capturing the authorizeRequest event (I have forms authentication and url authorization in place) and doing it from there using the request.redirect method. That gets me client side redirection.&lt;/p&gt;
&lt;p&gt;But what if I don't want to go back to the client, what if I want server-side redirection (but from within ASP.NET), that is, I want to go back to the top of the ISS processing sequence (or at least before where it is picking the ISAPI extension to process the request)? &lt;/p&gt;
&lt;p&gt;I thought that calling server.execute or server.transfer might do it, but from what I've read, it can only do this for another ASP.NET page (e.g. to &amp;quot;somepage.aspx&amp;quot; and not to &amp;quot;somepage.special&amp;quot;).&lt;/p&gt;
&lt;p&gt;What are your thoughts on this?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#6728264</link><pubDate>Tue, 11 Dec 2007 01:50:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6728264</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;David,&lt;/p&gt;
&lt;p&gt;First my environment is IIS6.0 and ASP.NET 2.0.&lt;/p&gt;
&lt;p&gt;Let's say that I have a request come in &amp;quot;appl.aspx?someparams&amp;quot; and I want to redirect that to &amp;quot;somepage.special&amp;quot; to be handled by whatever ISAPI extension is configured to handle &amp;quot;.special&amp;quot;, then how can I do this? Maybe the &amp;quot;somepage.special&amp;quot; came from a database lookup.&lt;/p&gt;
&lt;p&gt;I looked at a HttpModule in the ASP.NET pipeline capturing the authorizeRequest event (I have forms authentication and url authorization in place) and doing it from there using the request.redirect method. That gets me client side redirection.&lt;/p&gt;
&lt;p&gt;But what if I don't want to go back to the client, what if I want server-side redirection (but from within ASP.NET), that is, I want to go back to the top of the ISS processing sequence (or at least before where it is picking the ISAPI extension to process the request)? &lt;/p&gt;
&lt;p&gt;I thought that calling server.execute or server.transfer might do it, but from what I've read, it can only do this for another ASP.NET page (e.g. to &amp;quot;somepage.aspx&amp;quot; and not to &amp;quot;somepage.special&amp;quot;).&lt;/p&gt;
&lt;p&gt;What are your thoughts on this?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#6877803</link><pubDate>Thu, 27 Dec 2007 17:44:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6877803</guid><dc:creator>Josh</dc:creator><description>&lt;p&gt;For all redirection and url rewriting stuff, I use IIS Mod-Rewrite&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.micronovae.com/ModRewrite/ModRewrite.html"&gt;http://www.micronovae.com/ModRewrite/ModRewrite.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It's a must have tool on every IIS server. But since it's compatible with Apache's mod_rewrite, I guess Microsoft will never adopt such Apache style functionality.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#6915688</link><pubDate>Mon, 31 Dec 2007 11:47:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6915688</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Josh - I'm not certain why you think that Microsoft will never adopt Apache style functionality. Microsoft is not obtuse to ignore good ideas -- remember &amp;quot;embrace and extend&amp;quot;?&lt;/p&gt;
&lt;p&gt;For example, IIS7 takes the best of Apache and improves on every aspect:&lt;/p&gt;
&lt;p&gt;- Completely customizable core request engine - similar to Apache. Complete modularity improves security, reliability, control.&lt;/p&gt;
&lt;p&gt;- Completely customizable, schematized, and performant distributed configuration system - better than Apache because it's good enough to be on-by-default, while no one turns on .htaccess if they cannot accept its performance penality&lt;/p&gt;
&lt;p&gt;- Completely customizable, extensible UI which plugs with the core and distributed config - superior to Apache without add-ons.&lt;/p&gt;
&lt;p&gt;Does IIS7 currently lack the breadth of modules of Apache? Absolutely. But IIS7 has all the right ingredients and support to surpass Apache, and all the Netcraft (etc) numbers support it.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#6982402</link><pubDate>Fri, 04 Jan 2008 22:21:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6982402</guid><dc:creator>IT programmer</dc:creator><description>&lt;p&gt;Alot of reading here with no real answers&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7004389</link><pubDate>Sun, 06 Jan 2008 14:19:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7004389</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;IT programmer - unfortunately, that is by-design. You can read my BIO for the details.&lt;/p&gt;
&lt;p&gt;There are plenty of people and places to swap code snippets or answers and you should go there if that is your intent.&lt;/p&gt;
&lt;p&gt;If you want to know how something works such that you can help yourself, this is the right forum because it is my intent to help you.&lt;/p&gt;
&lt;p&gt;If you just want quick answers to questions on how to do something to resolve an issue, sorry, that is not my intent and my blog will not be useful in that manner.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7047030</link><pubDate>Thu, 10 Jan 2008 03:08:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7047030</guid><dc:creator>QED</dc:creator><description>&lt;p&gt;Good material, there is no school like old school. &lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7206658</link><pubDate>Wed, 23 Jan 2008 11:40:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7206658</guid><dc:creator>Paul B</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;I'm a bit new to this re-direction game so please forgive me if I am bing a bit thick. I have a bit of a problem that I am hoping you might be able to help me with. We need to set up a Web Site in IIS with its own server certificate. I then need this sites to forward to a single internal URL. When we set up a helloworld.htm in the web site, and browse to it we can see that the certificate is being &amp;quot;presented&amp;quot; to the client browser. I thought that all we needed to do was create a default.asp to do a response.redirect to the internal web site and the client browser will be re-directed but will be presented with the certificate first, but that does not seem to be the case. Is there a simple way to redirect to an internal http page from an Https external page with the certificate still being presented to the client? &lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;
&lt;p&gt;We have a site that a company wishes to use, however out site is developed for a number of customers. The site is the same, but the company wishing&lt;/p&gt;
&lt;p&gt;We are hosting an ebXML message handler for a number of companies which are all communicating with one single company. &lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7206709</link><pubDate>Wed, 23 Jan 2008 11:47:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7206709</guid><dc:creator>Paul B</dc:creator><description>&lt;p&gt;Hi David, &lt;/p&gt;
&lt;p&gt;Please ignore the ramblings at the bottom of the last post, bit of a cut and paste crisis&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7225130</link><pubDate>Thu, 24 Jan 2008 21:19:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7225130</guid><dc:creator>Arijit Upadhyay</dc:creator><description>&lt;p&gt;Mass Shared Hosting on Windows with IIS6 - &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/david.wang/archive/2005/09/26/HOWTO_Mass_Shared_Hosting_on_Windows_with_IIS6.aspx"&gt;http://blogs.msdn.com/david.wang/archive/2005/09/26/HOWTO_Mass_Shared_Hosting_on_Windows_with_IIS6.aspx&lt;/a&gt; - Posted on Monday, September 26, 2005&lt;/p&gt;
&lt;p&gt;Is the solution still valid? Because I cannot seem to find the &amp;quot;ISAPI Filter or ISAPI Extension rewrite the URL based on the Host header&amp;quot; on their website - &lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/serviceproviders/solutions/windowsbasedhosting.mspx"&gt;http://www.microsoft.com/serviceproviders/solutions/windowsbasedhosting.mspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Has it been removed in Version 4.5?&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7263539</link><pubDate>Sun, 27 Jan 2008 09:59:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7263539</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Paul B - You should use ISA Server 2006 for this task. It will do SSL Endpoint termination and HTTP routing.&lt;/p&gt;
&lt;p&gt;You want to do &amp;quot;Server Side Forwarding&amp;quot; (SSL is irrelevant to the discussion since it happens before HTTP, which is where the redirection happens). That requires a reverse proxy add-on module.&lt;/p&gt;
&lt;p&gt;You tried &amp;quot;Client Side Redirection&amp;quot; with response.Redirect&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7263652</link><pubDate>Sun, 27 Jan 2008 10:15:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7263652</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Arijit - the ISAPI Filter is part of the hosting solution. You will not find a link to just download.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7464271</link><pubDate>Tue, 05 Feb 2008 15:17:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7464271</guid><dc:creator>Gary</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Thanks for allowing me to ask a question. On my IIS webserver, sometimes the IP address is displayed in the URL, i.e. &lt;a rel="nofollow" target="_new" href="http://100.100.100.100/dir"&gt;http://100.100.100.100/dir&lt;/a&gt; instead of &lt;a rel="nofollow" target="_new" href="http://www.domain.com/dir"&gt;http://www.domain.com/dir&lt;/a&gt;. Is it possible to have some re-write on this, or do the re-writes normally exclude the domain part of the URL.&lt;/p&gt;
&lt;p&gt;Many thanks in advance for any advice you can offer.&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7510864</link><pubDate>Thu, 07 Feb 2008 12:29:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7510864</guid><dc:creator>Paul B</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Thanks for the reply but I don't think we can use ISA Server 2006. We have one IP address, which I need to share between a number of our customers, each of which have their own certificate. You can only set up an ISA Server Web listener to listen on one IP address (unless you know different), and we have a domain name, e.g. &lt;a rel="nofollow" target="_new" href="https://www.mymainDomain.com"&gt;https://www.mymainDomain.com&lt;/a&gt; pointing to that IP address. I believe you can only have one certificate for each listener. Because of this limitation, we thought that for each customer they can put their company name at the end of the URL, e.g. &lt;a rel="nofollow" target="_new" href="https://www.MyMainDomain.com/company1"&gt;https://www.MyMainDomain.com/company1&lt;/a&gt;, www.MyMainDomain.com/company2, ...etc, and we have set up an SSL tunelling rule to pass requests stright to our IIS. IIS will have a seperate web site in IIS each with their own certificate so that the supplier is presented with the correct certificate for the customer (we have tested this and this seems to work). Each of these URLs then need to be forwarded on the server side to another single internal URL, e.g. http:\\internalserver\AnotherWebPage, but we want the customer not to see this URL, as far as they are concerned we need them to think they are POSTing to &lt;a rel="nofollow" target="_new" href="https://www.MyMainDomain.com/company1"&gt;https://www.MyMainDomain.com/company1&lt;/a&gt;. Its the forwarding the request to the internal site that we are stuck on&lt;/p&gt;
&lt;p&gt;Is it possible to do this?&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7790953</link><pubDate>Tue, 19 Feb 2008 14:23:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7790953</guid><dc:creator>Yunus</dc:creator><description>&lt;p&gt;How to set url dummy @total application execution&lt;/p&gt;
&lt;p&gt;yunus.b@sqlstar.com&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7790981</link><pubDate>Tue, 19 Feb 2008 14:25:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7790981</guid><dc:creator>Yunus</dc:creator><description>&lt;p&gt;How to set dummy &amp;nbsp;url @ runtime &amp;nbsp;application execution in ASP.Net&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;YUNUS&lt;/p&gt;
&lt;p&gt;yunus.b@sqlstar.com&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7819195</link><pubDate>Wed, 20 Feb 2008 18:13:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7819195</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Paul B - You want Server Side Forwarding, which is certainly possible on IIS but you will have to purchase or find an ISAPI Filter to do it.&lt;/p&gt;
&lt;p&gt;I do not believe your scheme to multiplex multiple SSL Certificates over one external IP/Port works. Certainly not for certificates that look like companyA.com and companyB.com. It can work for certificates that look like companyA.MyMainDomain.com and companyB.MyMainDomain.com&lt;/p&gt;
&lt;p&gt;The &amp;quot;Magic&amp;quot; is in your tunnel rule that appears to magically know to route &lt;a rel="nofollow" target="_new" href="https://www.MyMainDomain/company1"&gt;https://www.MyMainDomain/company1&lt;/a&gt; traffic to an internal IIS website with its own SSL certificate for company1. Tell me how can the tunnel figure out the URL to tunnel SSL traffic to the correct IIS website when it is encrypted? And if it doesn't figure out the URL, IIS certainly has no way to figure out which website (and server certificate) is supposed to be used.&lt;/p&gt;
&lt;p&gt;Anyways, you can use ISA Server in place of the internal IIS server to do the reverse proxying task that you wan.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#7819228</link><pubDate>Wed, 20 Feb 2008 18:15:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7819228</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Gary - fix your web pages to not give the IP. And don't use IP address in as your hostname or redirection hostname.&lt;/p&gt;
&lt;p&gt;You never want to have code that is rewriting your outbound request looking for 100.100.100.100 to rewrite to domain.com. That would just kill performance and scalability.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8085459</link><pubDate>Fri, 07 Mar 2008 06:40:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8085459</guid><dc:creator>Dave</dc:creator><description>&lt;p&gt;David, I am your alter-ego looking for a point in the right direction. &amp;nbsp;I've done hardware for many years and plenty of admin, but coding is &amp;quot;magic.&amp;quot; I'm tryin' tho. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;In short, I've got an IIS server and an edge server on one subnet and Exchange 2007 (hub, mailbox, CAS) on another. &amp;nbsp;As I understand your article, I need Server-Side Forwarding, but I've never done it before and don't know where to begin. &lt;/p&gt;
&lt;p&gt;Any references you'd like to share? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope it will lead to a better understanding of your other articles. . .&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8162204</link><pubDate>Wed, 12 Mar 2008 01:42:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8162204</guid><dc:creator>ken</dc:creator><description>&lt;p&gt;Thanks for your guide but... sorry I can't resist:&lt;/p&gt;
&lt;p&gt;&amp;quot;Actually, Apache &amp;quot;core&amp;quot; does NOT perform ANY sort of redirection. You need to install and configure add-on modules like mod_redirect to get Client-Side Redirection, mod_rewrite to get Server-Side Redirection, and mod_proxy to get Server-Side Forwarding. So, the ability to redirect is NOT built-in&amp;quot;&lt;/p&gt;
&lt;p&gt;Apache on ubuntu linux:&lt;/p&gt;
&lt;p&gt;1) open terminal&lt;/p&gt;
&lt;p&gt;2) write: sudo a2enmod rewrite&lt;/p&gt;
&lt;p&gt;3) mod rewrite installed and working&lt;/p&gt;
&lt;p&gt;No more than 10 seconds.&lt;/p&gt;
&lt;p&gt;And as far as I know, software modularity is an advantage, instead of a disadvantage. &lt;/p&gt;
&lt;p&gt;Come on David, I believe you can find a better way to defend iis against apache.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8201594</link><pubDate>Fri, 14 Mar 2008 14:40:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8201594</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;ken - actually, I am not saying anything about modularity nor &amp;quot;defending&amp;quot;&lt;/p&gt;
&lt;p&gt;My point is simple -- if you want to compare two web servers, compare apples to apples.&lt;/p&gt;
&lt;p&gt;People tend to treat mod_rewrite, mod_proxy, etc as indistinguishable and fundamental part of Apache when you and I know that they are simply add-on modules which are often bundled together in various combinations on various distros.&lt;/p&gt;
&lt;p&gt;These same individuals then complain that IIS does not have mod_rewrite, mod_proxy, etc -- and thus Apache is superior.&lt;/p&gt;
&lt;p&gt;Uh, no... compare apples to apples. If you install add-on equivalent of mod_rewrite, mod_proxy, etc onto IIS, it is just as capable as Apache. Their argument holds no water, in my opinion.&lt;/p&gt;
&lt;p&gt;I compare IIS and Apache closer to how Apache core developers view the world -- web server core to web server core. And here's my fact -- I know that comparing IIS6 core to Apache 1.x core and 2.x cores, the comparison is a wash -- but IIS7 web server core just runs circles around apache 1.x and apache 2.x core.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8202052</link><pubDate>Fri, 14 Mar 2008 15:20:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8202052</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Dave - think of another way to expose the CAS server to the other subnet. If they two subnets are truly supposed to be separated, use ISA Server 2006 to bridge them. If they are not supposed to be separated, then what's wrong with your network topology?&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8336221</link><pubDate>Tue, 25 Mar 2008 21:14:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8336221</guid><dc:creator>Gregg</dc:creator><description>&lt;p&gt;We have recently switched to a 'canned' web server, and now calls to the root (&lt;a rel="nofollow" target="_new" href="http://www.sitename.com"&gt;http://www.sitename.com&lt;/a&gt;) get redirected via 302 to &lt;a rel="nofollow" target="_new" href="http://www.sitename.com"&gt;http://www.sitename.com&lt;/a&gt;/dir/homepage.asp?Check=1. &amp;nbsp;Why is their server treating it as a 302 (and adding the 'Check' variable) and not just displaying the /dir/homepage.asp without rewriting the url? &amp;nbsp;Documents tab has dir/homepage.asp set as the 'default content page', and there are no ISAPI filters, no custom HTTP headers for the site. &amp;nbsp;There is a load balancer up front, but the results appear to be coming from IIS:&lt;/p&gt;
&lt;p&gt;Tested at 3/25/2008 6:11:35 PM / from 74.8.161.66:&lt;/p&gt;
&lt;p&gt;URL=&lt;a rel="nofollow" target="_new" href="http://www.sitename.com"&gt;http://www.sitename.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Result code: 302 (Found / Moved Temporarily)&lt;/p&gt;
&lt;p&gt;Date: Tue, 25 Mar 2008 18:11:36 GMT&lt;/p&gt;
&lt;p&gt;Server: Microsoft-IIS/6.0&lt;/p&gt;
&lt;p&gt;Location: &lt;a rel="nofollow" target="_new" href="http://www.sitename.com"&gt;http://www.sitename.com&lt;/a&gt;/dir/default.asp?Check=1&lt;/p&gt;
&lt;p&gt;Content-Length: 177&lt;/p&gt;
&lt;p&gt;Content-Type: text/html&lt;/p&gt;
&lt;p&gt;Set-Cookie: ASPSES...&lt;/p&gt;
&lt;p&gt;Cache-Control: private&lt;/p&gt;
&lt;p&gt;New location: &lt;a rel="nofollow" target="_new" href="http://www.sitename.com"&gt;http://www.sitename.com&lt;/a&gt;/dir/default.asp?Check=1&lt;/p&gt;
&lt;p&gt;URL=&lt;a rel="nofollow" target="_new" href="http://www.sitename.com"&gt;http://www.sitename.com&lt;/a&gt;/dir/default.asp?Check=1&lt;/p&gt;
&lt;p&gt;Result code: 200 (OK / OK)&lt;/p&gt;
&lt;p&gt;Date: Tue, 25 Mar 2008 18:11:36 GMT&lt;/p&gt;
&lt;p&gt;Server: Microsoft-IIS/6.0&lt;/p&gt;
&lt;p&gt;Content-Type: text/html&lt;/p&gt;
&lt;p&gt;Set-Cookie: ShopperID=D67...&lt;/p&gt;
&lt;p&gt;Cache-Control: private&lt;/p&gt;
&lt;p&gt;tia.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8409754</link><pubDate>Sat, 19 Apr 2008 07:33:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8409754</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Gregg - No IIS feature ever adds the Check=1 querystring&lt;/p&gt;
&lt;p&gt;Thus, it looks like you are seeing 302 redirection made by custom code running on IIS. This is either from:&lt;/p&gt;
&lt;p&gt;1. Default Document at &lt;a rel="nofollow" target="_new" href="http://www.sitename.com"&gt;http://www.sitename.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. *-scriptmap applicable at &lt;a rel="nofollow" target="_new" href="http://www.sitename.com"&gt;http://www.sitename.com&lt;/a&gt;/&lt;/p&gt;
&lt;p&gt;3. ISAPI Filter, either Global or per-website&lt;/p&gt;
&lt;p&gt;4. User-configured HttpRedirect at &lt;a rel="nofollow" target="_new" href="http://www.sitename.com"&gt;http://www.sitename.com&lt;/a&gt;/&lt;/p&gt;
&lt;p&gt;5. Networking layer between IIS and browser&lt;/p&gt;
&lt;p&gt;You will have to find the custom code and change its behavior.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8574424</link><pubDate>Thu, 05 Jun 2008 05:06:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574424</guid><dc:creator>Morris</dc:creator><description>&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://en.wikipedia.org/wiki/Reverse_proxy"&gt;http://en.wikipedia.org/wiki/Reverse_proxy&lt;/a&gt; has a great discussion about forwarding requests and includes recent links for products that serve the purpose (perhaps biased - it is missing ISA and ISAPIrewrite...).&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8711109</link><pubDate>Wed, 09 Jul 2008 06:32:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8711109</guid><dc:creator>Flank</dc:creator><description>&lt;p&gt;&amp;quot;Where things differ is availability&amp;quot; uhhhhh - should it read: If its not available then its no use for the user?&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8728093</link><pubDate>Sun, 13 Jul 2008 14:48:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8728093</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Flank - Not really. I am pointing out that IIS is no less capable than Apache, including add-on behavior.&lt;/p&gt;
&lt;p&gt;The difference is the availability of the add-on -- Apache tends to be bundled with a bunch of different modules activated, whether you want it or not, while IIS comes locked down and requires choices that tend to require money in return for support.&lt;/p&gt;
&lt;p&gt;Both usage models have their suitable niche. The key difference is the availability of the add-on.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8733889</link><pubDate>Tue, 15 Jul 2008 19:51:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8733889</guid><dc:creator>Armando</dc:creator><description>&lt;p&gt;Hi David, cheers for your paper and posts. They have opened my eyes in the world of URL redirect.&lt;/p&gt;
&lt;p&gt;I have a location A (www.domain.com/virtual_directory) that I want to redirect to a location B (100.200.300.400/virtual_directory), and I do not want the end-user to see the IP, I want the user to see the location A in the address bar.&lt;/p&gt;
&lt;p&gt;While I am looking for the solution, I am doing clint-side redirect directly with IIS through it's core function &amp;quot;A redirection to an URL&amp;quot;, but the problem is that the URL in the address bar shows the IP address that I redirected to from the location A.&lt;/p&gt;
&lt;p&gt;What I want to accomplish is a server-side redirect that when the end-user enters location A (www.domain.com/virtual_directory) the user is redirected to the location B (100.200.300.400/virtual_folder) located in another server, and keep the location A (www.domain.com/virtual_directory) in the address bar.&lt;/p&gt;
&lt;p&gt;Any help with this regard will be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Armando&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8792388</link><pubDate>Wed, 30 Jul 2008 23:31:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8792388</guid><dc:creator>sharlyne</dc:creator><description>&lt;p&gt;Hi David. I'm new to IIS and found your post interested. I have been reading several sites to try to redirect site.com/page.asp?id=1 to www.site.com/page.asp?id=1 and have come to a stump. I want the user to see www.site.com/page.asp?id=1 in their address bar so I believe I need server-side redirection.&lt;/p&gt;
&lt;p&gt;I have been reading the MS support documents on setting redirection in the IIS to a website, but it doesn't redirect the &amp;quot;?id=1&amp;quot; portion of the url. I've tried the different syntax in the redirect $q $v etc, but none of it works. for example, with the redirect url of &lt;a rel="nofollow" target="_new" href="http://www.site.com"&gt;http://www.site.com&lt;/a&gt;$v$q if I submit site.com/page.asp?id=1 I will get the page &lt;a rel="nofollow" target="_new" href="http://www.site.com"&gt;http://www.site.com&lt;/a&gt;/page.asp?id=1/page.asp.&lt;/p&gt;
&lt;p&gt;If I leave out the syntax $v$q, then I just get &lt;a rel="nofollow" target="_new" href="http://www.site.com"&gt;http://www.site.com&lt;/a&gt;/page.asp. What am I missing?&lt;/p&gt;
&lt;p&gt;Could you point me in the right direction? I see my question is similar to Armando. I have also done what he had in IIS.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sharlyne&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8807981</link><pubDate>Sat, 02 Aug 2008 23:47:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8807981</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;sharlyne - If you want site.com and www.site.com to go to the same website, then you do not want to setup redirections.&lt;/p&gt;
&lt;p&gt;Just setup www.site.com and site.com as Host headers in your IIS website.&lt;/p&gt;
&lt;p&gt;Then change the DNS record to make both www.site.com and site.com point to your IIS webserver.&lt;/p&gt;
&lt;p&gt;Your question actually is not similar to Armando, who wants to mask the redirection. You want to have both hostnames point to the same content.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8833351</link><pubDate>Tue, 05 Aug 2008 10:29:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8833351</guid><dc:creator>ROY</dc:creator><description>&lt;p&gt;Hi David ..&lt;/p&gt;
&lt;p&gt;I want to make a redirection like this &lt;/p&gt;
&lt;p&gt;the user request &lt;/p&gt;
&lt;p&gt;www.****.com/icon.aspx?m=*&lt;/p&gt;
&lt;p&gt;he will get the file in url&lt;/p&gt;
&lt;p&gt;www.****.com/icon/*.gif&lt;/p&gt;
&lt;p&gt;Is this possible ? And How?&lt;/p&gt;
&lt;p&gt;thanks&amp;gt;&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8921884</link><pubDate>Wed, 03 Sep 2008 15:15:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8921884</guid><dc:creator>wolf</dc:creator><description>&lt;p&gt;Microsoft should &amp;nbsp;make it easy to redirect HTTP to HTTPS in IIS&lt;/p&gt;
&lt;p&gt;Apache has done it many years ago.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8952700</link><pubDate>Mon, 15 Sep 2008 18:23:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8952700</guid><dc:creator>BK</dc:creator><description>&lt;p&gt;&amp;quot;Get ready for this index to be updated with links...&amp;quot;&lt;/p&gt;
&lt;p&gt;OK, it's 3 years later and you haven't updated the links.&lt;/p&gt;
&lt;p&gt;Too bad, it would have been a helpful article.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8956548</link><pubDate>Thu, 18 Sep 2008 05:39:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8956548</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;BK - Sorry. I just ran out of time since publishing the blog entry. I have a lot of other, often competing interests. You may want to spend a little more time and figure it out because the clues are everywhere.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8956835</link><pubDate>Thu, 18 Sep 2008 09:58:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8956835</guid><dc:creator>prasad yalamanchili</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;We have two urls &lt;a rel="nofollow" target="_new" href="http://portal.k2.com/portal/server.pt"&gt;http://portal.k2.com/portal/server.pt&lt;/a&gt; and &lt;a rel="nofollow" target="_new" href="http://bizz1.k2.com/portal/server.pt"&gt;http://bizz1.k2.com/portal/server.pt&lt;/a&gt; being hosted from the same website or one virtual directory. When the user enters either the first url or second url we need to prepend portal/server.pt to the respective url and also change http mode to https mode when making the actual call. I guess this is a basic redirection using response.redirect but how to do this for two different url's for the same website (Same IP Address and same virtual folder name and actual folder content). &amp;nbsp;Greatly appreciate your wonderful input in this regard. IIS 6.0, Windows 2003. Thanks a lot for your time.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8963032</link><pubDate>Wed, 24 Sep 2008 05:54:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8963032</guid><dc:creator>andri sofiyab</dc:creator><description>&lt;p&gt;Can you update this article with a HOWTO on exposing &lt;a rel="nofollow" target="_new" href="http://internal via"&gt;http://internal via&lt;/a&gt; &lt;a rel="nofollow" target="_new" href="http://external"&gt;http://external&lt;/a&gt; (IIS) by SQUID? &lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8970621</link><pubDate>Tue, 30 Sep 2008 22:12:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8970621</guid><dc:creator>tommy9un</dc:creator><description>&lt;p&gt;I hope my comments do not go against the spirit of this post. &amp;nbsp; But I do have a question and maybe someone can help me as well. &amp;nbsp;There are many reason for redirecting or forwarding requests. &amp;nbsp;Each has its own tools:&lt;/p&gt;
&lt;p&gt;ARR for IIS 7&lt;/p&gt;
&lt;p&gt;ISA &lt;/p&gt;
&lt;p&gt;ISAPI Rewrite lite and full (includes proxy module)&lt;/p&gt;
&lt;p&gt;Site and Virtual folder redirect&lt;/p&gt;
&lt;p&gt;Wild card redirect&lt;/p&gt;
&lt;p&gt;HTML meta tags&lt;/p&gt;
&lt;p&gt;etc&lt;/p&gt;
&lt;p&gt;The above is not meant to be a comprehensive list but illustrate the some of the tools that I've looked at. &amp;nbsp;I can't seem to find the right mix to solve my problem. &amp;nbsp;My issue is that I need &lt;/p&gt;
&lt;p&gt;1. ISA to filter the request &amp;nbsp;- web server publishing&lt;/p&gt;
&lt;p&gt;2. IIS_1 to server the static file - published site from ISA&lt;/p&gt;
&lt;p&gt;3. IIS_1 should forward dynamic content requests to IIS_2 - IIS_2 is invisible from ISA&lt;/p&gt;
&lt;p&gt;4. IIS_2 is the only server in the stack that has the .Net engine and can make DB connection&lt;/p&gt;
&lt;p&gt;There are several ways to classify N-tier application. &amp;nbsp;For my purpose, I say I need to have three tier app: ISA, IIS1, IIS2. &amp;nbsp;There is also a user and a DB cluster. &amp;nbsp;This is a generic .Net hosting env that we are building for all MS &amp;amp; .Net apps. &amp;nbsp;They way we plan to scale this env is by increasing the number of app servers (IIS_2 in this example) leaving the first to tier pretty constant. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ok, if I had IIS7, I think I would be using ARR for this. &amp;nbsp;But I only have IIS 6 and I can't find a way to do this correctly. &amp;nbsp;This should be pretty much textbook stuff. But it seems everything I read just talks about redirecting request. &amp;nbsp;In contrast, I am looking to build a hierarchy to separate static and dynamic content to servers on different tiers. Those from the java world will probably recognize this as Apache with Websphere plug-in or iPlanet-Weblogic combo.&lt;/p&gt;
&lt;p&gt;Not only do the requests have to be hierarchical, but they also need to be application aware. &amp;nbsp;Meaning that session cookies, authentication, and etc have to be preserved and passed on through to the last server in the chain. &amp;nbsp;Oh, and I want to be able to do some end of month reporting and audit of the http logs.&lt;/p&gt;
&lt;p&gt;Anyone? Help?!&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8970784</link><pubDate>Wed, 01 Oct 2008 01:08:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8970784</guid><dc:creator>rtait</dc:creator><description>&lt;p&gt;David,&lt;/p&gt;
&lt;p&gt;I am writing an ISAPI Filter where I redirect all user requests to a login page. &amp;nbsp;I am using the SetHeader() method to set the &amp;quot;url&amp;quot; header. &amp;nbsp;I am also creating another custom header that I intend to use in the login page. &amp;nbsp;This is working, but I have one problem. &amp;nbsp;I would like the address that appears in the login page address bar to be the actual login page address. &amp;nbsp;Currently, it is showing up as the address of the originally requested page.&lt;/p&gt;
&lt;p&gt;I tried solving this by doing a ServerSupportFunction(&amp;quot;302 redirect&amp;quot;), in the ISAPI Filter, but that doesn't retain my custom header.&lt;/p&gt;
&lt;p&gt;Thanks, in advance, for any help you can provide.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8972729</link><pubDate>Thu, 02 Oct 2008 06:20:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8972729</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;rtait - You want the 302 redirect to transfer state (the value of the custom header) to the Login Page.&lt;/p&gt;
&lt;p&gt;Have the 302 Redirect send the value of the Custom Header as a querystring parameter to the Login Page.&lt;/p&gt;
&lt;p&gt;You cannot use Custom Headers to hide the value from the user because Browser is doing the redirect and browsers do not send custom headers.&lt;/p&gt;
&lt;p&gt;Depending on the redirect, you may be able to Set a Cookie with the value of the Custom Header and have the browser send the Cookie (since it belongs to the same Domain) to the Login Page.&lt;/p&gt;
&lt;p&gt;All other choices involve implementing custom protocol over XMLHTTP and is no longer HTTP itself.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8973943</link><pubDate>Thu, 02 Oct 2008 20:02:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8973943</guid><dc:creator>rtait</dc:creator><description>&lt;p&gt;David,&lt;/p&gt;
&lt;p&gt;Thanks for the info. &amp;nbsp;I understand your explanation.&lt;/p&gt;
&lt;p&gt;I really don't want to use a querystring.&lt;/p&gt;
&lt;p&gt;Can you elaborate on your idea regarding setting a cookie? &amp;nbsp;I did try setting the &amp;quot;cookie:&amp;quot; header, but like you said the browser is doing the redirect - so that doesn't work.&lt;/p&gt;
&lt;p&gt;Thanks gain.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#8977418</link><pubDate>Mon, 06 Oct 2008 05:54:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8977418</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;rtait - From the server side, you should be using &amp;quot;Set-Cookie:&amp;quot; response header to set a cookie. Depending on the domain of the cookie being set, the browser may then choose to send the &amp;quot;Cookie:&amp;quot; header on its request to your redirected Login page.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9257477</link><pubDate>Tue, 30 Dec 2008 21:48:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9257477</guid><dc:creator>Andre Alexanian</dc:creator><description>&lt;p&gt;David, can you answer prasad yalamanchili's question from September 18, 2008 2:58 AM, I have the same problem.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;//Andre&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9302238</link><pubDate>Fri, 09 Jan 2009 20:24:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9302238</guid><dc:creator>Brent Cranmer</dc:creator><description>&lt;p&gt;Our organization has gone through a name change from domain A to domain B. We have an application (app1) that has always been accessed on https. I need to cut the application over to the domain B URL and want to know if there's a way to do the following redirect:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://app1.domainA.com"&gt;https://app1.domainA.com&lt;/a&gt; to &lt;a rel="nofollow" target="_new" href="https://app1.domainB.com?"&gt;https://app1.domainB.com?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Our users have the old https URL bookmarked as we never had a redirect for http:// setup. Obviously I want to minimize impact to the users and not have to depend upon them to update their bookmarks to be able to continue to access app1.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Brent&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9303676</link><pubDate>Sat, 10 Jan 2009 10:46:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9303676</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Brent - just set up HTTP Redirect on the website for app1.domainA.com to send redirection to &lt;a rel="nofollow" target="_new" href="https://app1.domainB.com"&gt;https://app1.domainB.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTTP Redirect supports other parameters on the redirection as well. Only thing that won't work is a POST request to app1.domainA.com - browsers will not transparently re-POST to app1.domainB.com&lt;/p&gt;
&lt;p&gt;You want to use HTTP 301 Permanent Redirection to transparently push the transition. Then, you can stop paying money to keep the domainA.com registered and a website running to redirect for it.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9329985</link><pubDate>Fri, 16 Jan 2009 21:14:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9329985</guid><dc:creator>Colleen</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;I am new to this environment and need a little help.&lt;/p&gt;
&lt;p&gt;Currently we have several websites within our company, an advertisement has gone out without the www in front of our website. The business would like to modify our IIS to allow for both entries. One using the www.whatever.com and one using whatever.com. &amp;nbsp;I thought this would be easy enough... I've tried it two ways...&lt;/p&gt;
&lt;p&gt;ONE... &lt;/p&gt;
&lt;p&gt;I went into the IIS properties of the current website and added another host header name - website minus the www. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;TWO... &lt;/p&gt;
&lt;p&gt;I tried adding another website called for example... whatever.com. once this was created I went into the properties and Home Directory - clicked &amp;quot;A redirection to a URL&amp;quot; and entered the full web address... including the www.. so I would have entered www.whatever.com...&lt;/p&gt;
&lt;p&gt;Neither one of these are working... &amp;nbsp;Do you have any ideas on what I am missing within these steps???&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks so much &lt;/p&gt;
&lt;p&gt;CFC&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9334061</link><pubDate>Sat, 17 Jan 2009 06:52:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9334061</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;Colleen - What you are missing is outside of IIS configuration. Make sure DNS is setup correctly to resolve both website with and without www. to your web server.&lt;/p&gt;
&lt;p&gt;Both of your actions should work. First option allows user to browse the website with and without www. and wouldn't notice the difference. Second option would make all users would did not type www. redirect to see in their URL location bar the www. hostname.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9399775</link><pubDate>Thu, 05 Feb 2009 23:45:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9399775</guid><dc:creator>Steve B</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;I have a group that uses IIS 6 on Win 2003 EE with SP2. &amp;nbsp;The have a main DNS entry research.university.edu registered to an host and IP which works just fine and has only a single site being hosted. So there is a default page non-ssl. We have added another environment on another server with a new hostname and IP same server type and O/S. What they want is to have some sort of rewrite that will allow clients to get to either environment but disply the research.university.edu link back to the browser. Is this possible? &lt;/p&gt;
&lt;p&gt;Example: research.university.edu\research would keep the client on the existing box, no problem. &amp;nbsp;But if a client should choose the second environment from the default page it has to go to another server, but they want to the client to see research.university.edu\enviornment2 in the URL display on the browser, yet I don't think it is possible.&lt;/p&gt;
&lt;p&gt;Since they didn't consider this when archieteching this years ago there is a lot of code and e-mail that they don't want to change so now I have to find them the mythical unicorn. &lt;/p&gt;
&lt;p&gt;Can I do this with mod_rewrite?&lt;/p&gt;
&lt;p&gt;Any help would be aprreciate, my eyes are bleeding from all this reading and I am confused.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9402423</link><pubDate>Fri, 06 Feb 2009 19:03:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9402423</guid><dc:creator>John G</dc:creator><description>&lt;p&gt;This blog doesn't say anything about anything. &amp;nbsp;It has been going for three years and there is nothing in here. &amp;nbsp;It needs to be deleted so it doesn't show up on the search engines.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9410667</link><pubDate>Tue, 10 Feb 2009 17:44:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9410667</guid><dc:creator>Aldo M</dc:creator><description>&lt;p&gt;Hi David&lt;/p&gt;
&lt;p&gt;Our company web server is used to serve data through port 443 - SSL with a certificate installed and running fine - at &lt;a rel="nofollow" target="_new" href="https://companyname.com"&gt;https://companyname.com&lt;/a&gt; (443). &lt;a rel="nofollow" target="_new" href="http://companyname.com"&gt;http://companyname.com&lt;/a&gt; (80) on that same server is currently not serving pages.&lt;/p&gt;
&lt;p&gt;We would like to have a web site outside our company at &lt;a rel="nofollow" target="_new" href="http://companyname.net"&gt;http://companyname.net&lt;/a&gt; (not .com). Is it possible to redirect only port 80 traffic to a different IP address/web site?&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks so much for a great article.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9485993</link><pubDate>Wed, 18 Mar 2009 08:57:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9485993</guid><dc:creator>govind</dc:creator><description>&lt;p&gt;Great article ...very help contents....thanks buddy....you simply rocks...!!!!!!!!!&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9501523</link><pubDate>Mon, 23 Mar 2009 18:16:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9501523</guid><dc:creator>fkinuselessarticle</dc:creator><description>&lt;p&gt;u suck with ur article and ur fkin ego&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9801967</link><pubDate>Wed, 24 Jun 2009 22:48:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9801967</guid><dc:creator>rob merritt</dc:creator><description>&lt;p&gt;Hi I am trying to redirect a url &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://gscsmail.gscs.sk.ca/exchange"&gt;https://gscsmail.gscs.sk.ca/exchange&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://gscsmail.scs.sk.ca/exchange"&gt;https://gscsmail.scs.sk.ca/exchange&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;to avoid purchasing a 2nd cert &lt;/p&gt;
&lt;p&gt;the code I have will repoint to the new contect however the URL remains the same and I still get barked at by the cert. I am trying to get this to act like mod_rewrite in apache (you'd think MS would have a tool to do this)&lt;/p&gt;
&lt;p&gt;code:&lt;/p&gt;
&lt;p&gt;// REDIRECTOR.CPP - Implementation file for your Internet Server&lt;/p&gt;
&lt;p&gt;// &amp;nbsp; &amp;nbsp;redirector Filter&lt;/p&gt;
&lt;p&gt;#include &amp;quot;stdafx.h&amp;quot;&lt;/p&gt;
&lt;p&gt;#include &amp;quot;redirector.h&amp;quot;&lt;/p&gt;
&lt;p&gt;///////////////////////////////////////////////////////////////////////&lt;/p&gt;
&lt;p&gt;// The one and only CRedirectorFilter object&lt;/p&gt;
&lt;p&gt;CRedirectorFilter theFilter;&lt;/p&gt;
&lt;p&gt;///////////////////////////////////////////////////////////////////////&lt;/p&gt;
&lt;p&gt;// CRedirectorFilter implementation&lt;/p&gt;
&lt;p&gt;CRedirectorFilter::CRedirectorFilter()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;CRedirectorFilter::~CRedirectorFilter()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;BOOL CRedirectorFilter::GetFilterVersion(PHTTP_FILTER_VERSION pVer)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	// Call default implementation for initialization&lt;/p&gt;
&lt;p&gt;	CHttpFilter::GetFilterVersion(pVer);&lt;/p&gt;
&lt;p&gt;	// Clear the flags set by base class&lt;/p&gt;
&lt;p&gt;	pVer-&amp;gt;dwFlags &amp;amp;= ~SF_NOTIFY_ORDER_MASK;&lt;/p&gt;
&lt;p&gt;	// Set the flags we are interested in&lt;/p&gt;
&lt;p&gt;	pVer-&amp;gt;dwFlags |= SF_NOTIFY_ORDER_HIGH | SF_NOTIFY_SECURE_PORT | SF_NOTIFY_NONSECURE_PORT&lt;/p&gt;
&lt;p&gt;			 | SF_NOTIFY_PREPROC_HEADERS | SF_NOTIFY_END_OF_NET_SESSION;&lt;/p&gt;
&lt;p&gt;	// Load description string&lt;/p&gt;
&lt;p&gt;	TCHAR sz[SF_MAX_FILTER_DESC_LEN+1];&lt;/p&gt;
&lt;p&gt;	ISAPIVERIFY(::LoadString(AfxGetResourceHandle(),&lt;/p&gt;
&lt;p&gt;			IDS_FILTER, sz, SF_MAX_FILTER_DESC_LEN));&lt;/p&gt;
&lt;p&gt;	_tcscpy(pVer-&amp;gt;lpszFilterDesc, sz);&lt;/p&gt;
&lt;p&gt;	return TRUE;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;DWORD CRedirectorFilter::OnPreprocHeaders(CHttpFilterContext* pCtxt,&lt;/p&gt;
&lt;p&gt;	PHTTP_FILTER_PREPROC_HEADERS pHeaderInfo)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	char buffer[256];&lt;/p&gt;
&lt;p&gt;	DWORD buffSize = sizeof(buffer);&lt;/p&gt;
&lt;p&gt;	BOOL bHeader = pHeaderInfo-&amp;gt;GetHeader(pCtxt-&amp;gt;m_pFC, &amp;quot;url&amp;quot;, buffer, &amp;amp;buffSize); &lt;/p&gt;
&lt;p&gt;	CString urlString(buffer);&lt;/p&gt;
&lt;p&gt;	urlString.MakeLower(); // for this exercise &lt;/p&gt;
&lt;p&gt;	if (urlString.Find(&amp;quot;gscs.&amp;quot;) != -1) //we want to redirect this file&lt;/p&gt;
&lt;p&gt;	{&lt;/p&gt;
&lt;p&gt;		urlString.Replace(&amp;quot;gscs.&amp;quot;,&amp;quot;scs.&amp;quot;);&lt;/p&gt;
&lt;p&gt;		char * newUrlString= urlString.GetBuffer(urlString.GetLength());&lt;/p&gt;
&lt;p&gt;		pHeaderInfo-&amp;gt;SetHeader(pCtxt-&amp;gt;m_pFC, &amp;quot;url&amp;quot;, newUrlString);&lt;/p&gt;
&lt;p&gt;		return SF_STATUS_REQ_HANDLED_NOTIFICATION;&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;//we want to leave this alone and let IIS handle it&lt;/p&gt;
&lt;p&gt;	return SF_STATUS_REQ_NEXT_NOTIFICATION;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;DWORD CRedirectorFilter::OnEndOfNetSession(CHttpFilterContext* pCtxt)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	// TODO: React to this notification accordingly and&lt;/p&gt;
&lt;p&gt;	// return the appropriate status code&lt;/p&gt;
&lt;p&gt;	return SF_STATUS_REQ_NEXT_NOTIFICATION;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;// Do not edit the following lines, which are needed by ClassWizard.&lt;/p&gt;
&lt;p&gt;#if 0&lt;/p&gt;
&lt;p&gt;BEGIN_MESSAGE_MAP(CRedirectorFilter, CHttpFilter)&lt;/p&gt;
&lt;p&gt;	//{{AFX_MSG_MAP(CRedirectorFilter)&lt;/p&gt;
&lt;p&gt;	//}}AFX_MSG_MAP&lt;/p&gt;
&lt;p&gt;END_MESSAGE_MAP()&lt;/p&gt;
&lt;p&gt;#endif	// 0&lt;/p&gt;
&lt;p&gt;///////////////////////////////////////////////////////////////////////&lt;/p&gt;
&lt;p&gt;// If your extension will not use MFC, you'll need this code to make&lt;/p&gt;
&lt;p&gt;// sure the extension objects can find the resource handle for the&lt;/p&gt;
&lt;p&gt;// module. &amp;nbsp;If you convert your extension to not be dependent on MFC,&lt;/p&gt;
&lt;p&gt;// remove the comments arounn the following AfxGetResourceHandle()&lt;/p&gt;
&lt;p&gt;// and DllMain() functions, as well as the g_hInstance global.&lt;/p&gt;
&lt;p&gt;/****&lt;/p&gt;
&lt;p&gt;static HINSTANCE g_hInstance;&lt;/p&gt;
&lt;p&gt;HINSTANCE AFXISAPI AfxGetResourceHandle()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	return g_hInstance;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;BOOL WINAPI DllMain(HINSTANCE hInst, ULONG ulReason,&lt;/p&gt;
&lt;p&gt;					LPVOID lpReserved)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	if (ulReason == DLL_PROCESS_ATTACH)&lt;/p&gt;
&lt;p&gt;	{&lt;/p&gt;
&lt;p&gt;		g_hInstance = hInst;&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;	return TRUE;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;****/&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9857949</link><pubDate>Wed, 05 Aug 2009 14:10:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9857949</guid><dc:creator>Doug</dc:creator><description>&lt;p&gt;David, spot the similarity:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://umakanthn.blogspot.com/2006/05/url-redirection-basics-for-iis.html?showComment=1249470563587#c5590832175879454994"&gt;http://umakanthn.blogspot.com/2006/05/url-redirection-basics-for-iis.html?showComment=1249470563587#c5590832175879454994&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9893786</link><pubDate>Thu, 10 Sep 2009 21:07:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9893786</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;Hello, this is my case: I have a URL www.nametoolong.com and I have another URL www.ntl.com which is an easy url for the visitors to remember. Now when someone comes thru the short url and I do a redirect to my regular long url I know I'm losing session info and some other stuff. Is there a way to redirect/formard the short url to the long one? i.e. when I type www.ntl.com/promo and hut enter I would like to load www.nametoolong.com/promo ... many thanks for the help!&lt;/p&gt;
&lt;p&gt;Javier&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9899620</link><pubDate>Fri, 25 Sep 2009 20:52:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9899620</guid><dc:creator>Kirrin</dc:creator><description>&lt;p&gt;Don't want to seem silly here, but did I miss the actual HOW-TO? I do not see any instructions on how to get this done. What I would like to do (based on your taxonomy), is server-side redirection or &lt;a rel="nofollow" target="_new" href="http://external to"&gt;http://external to&lt;/a&gt; &lt;a rel="nofollow" target="_new" href="http://internal"&gt;http://internal&lt;/a&gt;, with the external never changing. I however do not see your instructions on getting this done.&lt;/p&gt;
&lt;p&gt;Could you please point me to where the instructions actually are?&lt;/p&gt;
&lt;p&gt;I would really like to have a look at your instructions as I'm required to implement this soon. Much appreciated.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9908019</link><pubDate>Fri, 16 Oct 2009 08:35:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9908019</guid><dc:creator>kyle</dc:creator><description>&lt;p&gt;hi,david&lt;/p&gt;
&lt;p&gt;in method OnUrlMap, &lt;/p&gt;
&lt;p&gt;pCtxt-&amp;gt;ServerSupportFunction(SF_REQ_SEND_RESPONSE_HEADER, &amp;quot;403 Forbidden&amp;quot;, NULL, NULL);&lt;/p&gt;
&lt;p&gt;return SF_STATUS_REQ_FINISHED; &lt;/p&gt;
&lt;p&gt;it work well in IIS 6.0, but in IIS 7.0, i receive page like HTTP/1.1 403 Forbidden, [HTTP/1.1 403 Forbidden] this content show in the page, could you give me some advice? please send me email: cothly@hotmail.com&lt;/p&gt;
&lt;p&gt;thank you in advance!&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9921206</link><pubDate>Thu, 12 Nov 2009 06:20:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9921206</guid><dc:creator>David Hazar</dc:creator><description>&lt;p&gt;Here is a tutorial I wrote with specific examples on how to set up server-side IIS redirection. &amp;nbsp;Examples include redirecting Exchange to SSL and redirecting with Parameters.&lt;/p&gt;
&lt;p&gt;&amp;lt;a href='&lt;a rel="nofollow" target="_new" href="http://davidhazar.blogspot.com/2009/11/iis-makes-website-redirection-easy.html"&gt;http://davidhazar.blogspot.com/2009/11/iis-makes-website-redirection-easy.html&lt;/a&gt;'&amp;gt;&lt;a rel="nofollow" target="_new" href="http://davidhazar.blogspot.com/2009/11/iis-makes-website-redirection-easy.html"&gt;http://davidhazar.blogspot.com/2009/11/iis-makes-website-redirection-easy.html&lt;/a&gt;&amp;lt;/a&amp;gt;&lt;/p&gt;
</description></item><item><title>re: HOWTO: Common URL Redirection Techniques for IIS, Summary</title><link>http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO-Common-URL-Redirection-Techniques-for-IIS-Summary.aspx#9935208</link><pubDate>Thu, 10 Dec 2009 17:05:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9935208</guid><dc:creator>Robert</dc:creator><description>&lt;p&gt;I would greatly appreciate assistance.&lt;/p&gt;
&lt;p&gt;We have only one server running windows 2008 server, and exchange 2010 server, and apache.&lt;/p&gt;
&lt;p&gt;When we type in the URL www.mydomain.com, IIS does not transer it to port 8080 (Where Apache is configured to listen to), and you get the following error &amp;quot;403 - Forbidden: Access is denied.&amp;quot;. &amp;nbsp; if you type in the browser www.mydomain.com:8080, everything works. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;What needs to be configured to allow incoming HTTP to be forwarded to port 8080?&lt;/p&gt;
&lt;p&gt;Any guidance or links to solve this would help.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
</description></item></channel></rss>