<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'redirection'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=redirection&amp;orTags=0</link><description>Search results matching tag 'redirection'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Redirects in IIS7 propagating out to all other redirect sites?</title><link>http://forums.iis.net/p/1158739/1924340.aspx#1924340</link><pubDate>Wed, 11 Nov 2009 20:03:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924340</guid><dc:creator>SQLRocks</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;I responded earlier to this with the suggestion of using a unique directory for each site, which does work.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m now using a different technique which is to store the actual redirection configuration at a higher level (applicationhost.config) instead of the site&amp;#39;s web.config file. This allows multiple redirection sites all with the same home directory and yet each can have it&amp;#39;s own unique URL that it redirect to. &lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example of the the AppCmd I used to have&amp;nbsp;a site (call it &amp;quot;xxxx&amp;quot;)&amp;nbsp;redirect to&amp;nbsp;&lt;a href="http://yyyy.com/"&gt;http://yyyy.com&lt;/a&gt; without&amp;nbsp;making/changing the web.config file in the site&amp;#39;s home directory.&lt;/p&gt;
&lt;p&gt;%windir%\system32\inetsrv\appcmd.exe set config &amp;quot;xxxx&amp;quot; -section:system.webServer/http&lt;br /&gt;Redirect -enabled:true -destination:http://yyyy.com -httpResponseStatus:Permanent -commitpath:apphost&lt;/p&gt;</description></item><item><title>IIS7 ServerSupportFunction</title><link>http://forums.iis.net/p/1162467/1923931.aspx#1923931</link><pubDate>Mon, 09 Nov 2009 17:09:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923931</guid><dc:creator>minho kim</dc:creator><cs:applicationKey>iis_7_-_troubleshooting-41</cs:applicationKey><description>&lt;p&gt;IIS7, Windows server 2008 64bit, &lt;/p&gt;
&lt;p&gt;ISAPI filter(VC 2005) hello. help me. i&amp;#39;ve got problem. &lt;/p&gt;
&lt;p&gt;I want to run my ISAPI filter on IIS7, but now disable. problem is following example.. &lt;/p&gt;
&lt;p&gt;When connect to http://www.test.com, ServerSupportFunction is not action But, &lt;/p&gt;
&lt;p&gt;connect to &lt;a href="http://www.test.com/index.htm"&gt;http://www.test.com/index.htm&lt;/a&gt;, ServerSupportFunction is action &lt;/p&gt;
&lt;p&gt;&amp;#39;NotificationType&amp;#39; use it : SF_NOTIFY_PREPROC_HEADERS &lt;/p&gt;
&lt;p&gt;when Reqeust Header arrived i think, at SF_NOTIFY_PREPROC_HEADERS first processing! &lt;/p&gt;
&lt;p&gt;but, connect to ROOT of WebServer(http://www.test.com) SF_NOTIFY_PREPROC_HEADERS event is not first processing. &lt;/p&gt;
&lt;p&gt;( I&amp;#39;m not use SF_NOTIFY_READ_RAW_DATA) &lt;/p&gt;
&lt;p&gt;sample code is,, &lt;/p&gt;
&lt;p&gt;switch (NotificationType) &lt;/p&gt;
&lt;p&gt;case SF_NOTIFY_PREPROC_HEADERS : &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;string url(&lt;a href="http://www.google.com/"&gt;http://www.google.com&lt;/a&gt;);&lt;/p&gt;
&lt;p&gt;string headers(&amp;quot;Location: &amp;quot;); &lt;/p&gt;
&lt;p&gt;headers += url.c_str(); &lt;/p&gt;
&lt;p&gt;headers += &amp;quot;\r\n&amp;quot;; &lt;/p&gt;
&lt;p&gt;headers += &amp;quot;Connection: close\r\n&amp;quot;; &lt;/p&gt;
&lt;p&gt;headers += &amp;quot;Content-type: text/html\r\n&amp;quot;; &lt;/p&gt;
&lt;p&gt;if(!pfc-&amp;gt;ServerSupportFunction(pfc, SF_REQ_SEND_RESPONSE_HEADER, &amp;quot;302 test ridirection&amp;quot;, (unsigned long)(headers.c_str()), 0)) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;logger-&amp;gt;error(&amp;quot;redirect() Redirection Failed&amp;quot;); &lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;logger-&amp;gt;debug(&amp;quot;test2222&amp;quot;); &lt;/p&gt;
&lt;p&gt;return SF_STATUS_REQ_NEXT_NOTIFICATION; &lt;/p&gt;
&lt;p&gt;break; &lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;why is not first event with SF_NOTIFY_PREPROC_HEADERS?? why IIS7 Server is hook&lt;/p&gt;
&lt;p&gt;(redirection default page) earlier than SF_NOTIFY_PREPROC_HEADERS?? &lt;/p&gt;</description></item><item><title>problem redirecting from http to https</title><link>http://forums.iis.net/p/1161883/1921214.aspx#1921214</link><pubDate>Mon, 19 Oct 2009 14:54:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921214</guid><dc:creator>Michael Y</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>Server: Windows Server 2008 Standard + SP2

Hi,

I originally posted this question in the Terminal Server forum but was told it was probably an IIS issue and I might get more help here.

I have built a Windows 2008 Terminal Server for a proof of concept idea. I have it set up and working correctly, both internally and externally, with a public certificate. However, I want to make it as easy as possible for my users. So, I want them to be able to type http://remote.company.com and it redirect to - https://remote.company.com/ts 

The simple way seems to be using IIS 7&amp;#39;s HTTP Redirect feature. On my Default Website, I double-click HTTP Redirect and choose to redirect to https://remote.company.com/ts (I also tick both boxes under Redirection Behaviour) and click Apply.

When I visit the site by typing http://remote.company.com I get &amp;quot;Internet Explorer cannot display the webpage&amp;quot;. However, if I got back into IIS on the server, within Default Website, if I click the &amp;#39;Browse *.80 (http)&amp;#39; link on the right task-pane IE opens up and takes me to the correct page. If I also look in c:\inetpub\wwwroot\web.config I see the following code:



    
        
    


If I&amp;#39;m on the server and open IE and type localhost into the address bar it redirects me to https://remote.company.com/ts

I&amp;#39;ve tried various combinations of the tick boxes under the HTTP Redirect settings without success. I have found this thread, which suggests the HTTP Redirect is simple and works, but not for me. http://social.technet.microsoft.com/Forums/en/winserverTS/thread/c8ad2809-1561-4891-8e71-6cea85a64158

What am I missing?

Cheers, Michael.</description></item><item><title>Re: Providing same behavior in IIS 7 as was available in IIS 6 for Http Redirect</title><link>http://forums.iis.net/p/1161022/1918216.aspx#1918216</link><pubDate>Thu, 24 Sep 2009 23:43:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918216</guid><dc:creator>sujitvp</dc:creator><cs:applicationKey>iis_7_-_troubleshooting-41</cs:applicationKey><description>&lt;p&gt;I have problem that seems related to the original question and the answer. I have 4 websites on my IIS 7.0 installation. All of the websites have a similar site structure. One of the folders under the root is /Source and I need to redirect this to /Destination for just Site4.&lt;/p&gt;
&lt;p&gt;I tried using the web interface and the appcmd for the HTTPRedirect module to enable and set the redirection as desired on the /Source directory of Site4. This works!&lt;/p&gt;
&lt;p&gt;The problem I am facing is that alongwith the Site4, the /Source directories of all the other 3 sites also get enabled for redirect to /Destination (relative to within the same site as /Source). I cant disable it on any of the other 3 sites either, as it immediately disables the redirect setting in all 4 (including Site4) sites.&lt;/p&gt;
&lt;p&gt;Can someone help me setup the redirection only for the Site4 site, without automatically setting it up for the other sites too?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Feature Request: Report Summary on Redirections</title><link>http://forums.iis.net/p/1161187/1918202.aspx#1918202</link><pubDate>Thu, 24 Sep 2009 22:56:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918202</guid><dc:creator>drmadcow</dc:creator><cs:applicationKey>iis_search_engine_optimization_toolkit-39</cs:applicationKey><description>&lt;p&gt;It would be nice when viewing a Site Analysis Report if under either the Content or Links dropdowns that there was a subsection called Redirect Mappings or something similar where we could see a list of all the internal redirections and where they redirect to.&amp;nbsp; Cheers.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Daryl Quenet,&lt;/p&gt;&lt;p&gt;Director of SEO Services,&lt;/p&gt;&lt;p&gt;http://www.beanstalk-inc.com/ &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Redirects in IIS7 propagating out to all other redirect sites?</title><link>http://forums.iis.net/p/1158739/1908467.aspx#1908467</link><pubDate>Sun, 28 Jun 2009 03:19:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908467</guid><dc:creator>SQLRocks</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;I ran into this same issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;What is mostly likely occuring here is that each of your 50 redirect sites has the same directory configured. In IIS7 when you setup a redirect it is stored in web.config in the site directory. Since all 50 sites share the same directory when you change one, you change them all.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My Quick solution was to create a separate directory for each of the redirection sites so that&amp;nbsp;each has it&amp;#39;s own web.config to store the redirection settings.&lt;/p&gt;
&lt;p&gt;My longer term solution was to build a single a Database driven redirection site. It catches all of the traffic not already assigned to a site, looks up the URL in a DB, then redirect appropriately. It was some simple code.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-Phil&lt;/p&gt;</description></item><item><title>Redirects in IIS7 propagating out to all other redirect sites?</title><link>http://forums.iis.net/p/1158739/1908249.aspx#1908249</link><pubDate>Thu, 25 Jun 2009 14:24:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908249</guid><dc:creator>rlbreton</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;All--&lt;/p&gt;&lt;p&gt;I&amp;#39;ve got a 2008/IIS7 server that houses a few sites and about 50 redirects.&amp;nbsp; This was originally hosted on 2k3/IIS6 with no issues.&amp;nbsp; Now I am having trouble setting the redirects for each hostname--I edit one, it propagates to all of them.&amp;nbsp; Any Thoughts?&amp;nbsp; I trust I am missing something simple.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;R.L. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>The redirection response results in another redirection.</title><link>http://forums.iis.net/p/1158361/1906675.aspx#1906675</link><pubDate>Thu, 11 Jun 2009 21:14:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906675</guid><dc:creator>Sypris</dc:creator><cs:applicationKey>iis_search_engine_optimization_toolkit-39</cs:applicationKey><description>&lt;p&gt;I get this for every link on each page for&amp;nbsp;my site. It doesn&amp;#39;t make sense to me, I&amp;#39;m not using redirects these are standard links. a href=&amp;quot;some.page&amp;quot;&lt;/p&gt;
&lt;p&gt;Could calling a Databind on a control cause this?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m kinda lost. Please help.&lt;/p&gt;</description></item><item><title>Seek Professional Help!!!</title><link>http://forums.iis.net/p/1157528/1903328.aspx#1903328</link><pubDate>Mon, 11 May 2009 13:30:21 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903328</guid><dc:creator>goldentine</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I need professional help here...&amp;nbsp;Here&amp;#39;s the situation... I have product URL&amp;#39;s&amp;nbsp;going to detail pages.&amp;nbsp; On that page it breaks out into sub-sections, at times it also carries extra parameters in the query string other than &amp;quot;v&amp;quot; and &amp;quot;fa&amp;quot;...&amp;nbsp;note that &amp;quot;v&amp;quot; is an alpha-numeric product ID, and &amp;quot;fa&amp;quot;&amp;nbsp;is the sub-section&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;res/stat.cfm?v=id (default page)&lt;/li&gt;
&lt;li&gt;res/stat.cfm?v=id&amp;amp;fa=graphs&lt;/li&gt;
&lt;li&gt;res/stat.cfm?v=id&amp;amp;fa=comments&lt;/li&gt;
&lt;li&gt;res/stat.cfm?v=id&amp;amp;fa=whatever&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;I&amp;#39;m looking to create rule(s) like the following:&lt;/strong&gt; &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;alphanumericID&lt;/li&gt;
&lt;li&gt;alphanumericID/graphs&lt;/li&gt;
&lt;li&gt;alphanumericID/comments&lt;/li&gt;
&lt;li&gt;alphanumericID/whatever&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I&amp;#39;m thinking the second parameter&amp;nbsp;after the ID needs to be written as some kind of wildcard so that it will work&amp;nbsp;in any of the above examples??&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I&amp;#39;m also looking for these rule requirements:&lt;/strong&gt; &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;no&amp;nbsp;hardcoded&amp;nbsp;rule values&amp;nbsp;(ex: graphs, comments, etc) as they get changed at times.&lt;/li&gt;
&lt;li&gt;make sure the alphanumericID is just that (regex A-Z 0-9), if not, skip rule&lt;/li&gt;
&lt;li&gt;direct access to&amp;nbsp;&amp;quot;res/stat.cfm&amp;quot; forces a&amp;nbsp;&amp;quot;url has moved&amp;quot; host headers then&amp;nbsp;redirects to the rewritten version.&lt;/li&gt;
&lt;li&gt;It would also be nice to be able to access the &amp;quot;res/stat.cfm&amp;quot; directly for testing and development purposes and&amp;nbsp;bypass the redirect... (ex:&amp;nbsp;res/stat.cfm?id=abc123&amp;amp;bypass=1)&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Here&amp;#39;s what I have so far which is not flexible and error prone.....&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pattern:&lt;/strong&gt;&amp;nbsp;^([^/]+)/?$&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Rewrite URL:&lt;/strong&gt; res/stat.cfm?v={R:1}&lt;/p&gt;
&lt;p&gt;Clearly this doesn&amp;#39;t do what I need it to do and far from flexible... I&amp;#39;ve been banging my head against the wall trying different things with minimal success.&amp;nbsp;I know there&amp;#39;s someone out there that could probably write this up in 2 minutes!&lt;/p&gt;
&lt;p&gt;I&amp;#39;d greatly appreciate the help!&amp;nbsp; Thanks big time&amp;nbsp;in advance!&lt;/p&gt;
&lt;p&gt;By the&amp;nbsp;way, the site in question is... &lt;a href="http://www.cbengine.com/"&gt;http://www.cbengine.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Rule to redirect to another domain, while keeping query string / URL intact?</title><link>http://forums.iis.net/p/1157428/1902898.aspx#1902898</link><pubDate>Wed, 06 May 2009 18:15:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1902898</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;This article should give an idea how to do the same by using IIS Manager UI. &lt;a href="http://learn.iis.net/page.aspx/461/creating-rewrite-rules-for-the-url-rewrite-module/"&gt;http://learn.iis.net/page.aspx/461/creating-rewrite-rules-for-the-url-rewrite-module/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or alternatively, open the web.config file located at the root folder of your web site and add this rule inside of the /&amp;lt;configuration&amp;gt;/&amp;lt;system.webServer&amp;gt;/&amp;lt;rewrite&amp;gt;/&amp;lt;rules&amp;gt; element (create those xml nodes if they do not yet exist).&lt;/p&gt;</description></item></channel></rss>