<?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 'redirect dynamic ulr'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=redirect+dynamic+ulr&amp;orTags=0</link><description>Search results matching tag 'redirect dynamic ulr'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Rule to catch swf files returns 404 file not found.</title><link>http://forums.iis.net/p/1162595/1924567.aspx#1924567</link><pubDate>Fri, 13 Nov 2009 01:20:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924567</guid><dc:creator>surrealis</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I have the following rule in my web.config &lt;/p&gt;
&lt;p&gt;&amp;lt;RULE stopProcessing=&amp;quot;true&amp;quot; name=&amp;quot;Lesson Testing&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;MATCH url=&amp;quot;(.+)/lesson/(.+).swf$&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;ACTION type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;/handleSWF.aspx?lookingfor={R:0}&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;/ACTION&amp;gt;&lt;br /&gt;&amp;lt;/RULE&amp;gt;&lt;/p&gt;
&lt;p&gt;When i attempt to access anything like &amp;quot;&lt;a href="http://www.[myurl].com/lesson/lesson.swf"&gt;http://www.[myurl].com/lesson/lesson.swf&lt;/a&gt;&amp;quot; i get a 404 file not found error? &lt;/p&gt;
&lt;div id="details-left"&gt;
&lt;table cellspacing="0" cellpadding="0"&gt;

&lt;tr class="alt"&gt;
&lt;th&gt;Module&lt;/th&gt;
&lt;td&gt;IIS Web Core&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Notification&lt;/th&gt;
&lt;td&gt;MapRequestHandler&lt;/td&gt;&lt;/tr&gt;
&lt;tr class="alt"&gt;
&lt;th&gt;Handler&lt;/th&gt;
&lt;td&gt;StaticFile&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Error Code&lt;/th&gt;
&lt;td&gt;0x80070002&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;div id="details-right"&gt;
&lt;table cellspacing="0" cellpadding="0"&gt;

&lt;tr class="alt"&gt;
&lt;th&gt;Requested URL&lt;/th&gt;
&lt;td&gt;&lt;a href="http://www.[url]/lesson/lesson.swf"&gt;http://www.[url]:80/lesson/lesson.swf&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Physical Path&lt;/th&gt;
&lt;td&gt;E:\web\[url]\htdocs\lesson\lesson.swf&lt;/td&gt;&lt;/tr&gt;
&lt;tr class="alt"&gt;
&lt;th&gt;Logon Method&lt;/th&gt;
&lt;td&gt;Anonymous&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Logon User&lt;/th&gt;
&lt;td&gt;Anonymous&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://www.[myurl].com/handleSWF.aspx"&gt;http://www.[myurl].com/handleSWF.aspx&lt;/a&gt; exists, and it works when i access &lt;a href="http://www.[myurl].com/handleSWF.aspx?lookingfor=http://www.[myurl].com/lesson/lesson.swf"&gt;http://www.[myurl].com/handleSWF.aspx?lookingfor=http://www.[myurl].com/lesson/lesson.swf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The page does what it is suppose to. I have to rewrite jpg&amp;#39;s, gif&amp;#39;s, txt&amp;#39;s and a bunch on internal file name extension&amp;nbsp;in a whole range of directory depths all of which will have &amp;quot;/lesson/&amp;quot; in them. &lt;/p&gt;
&lt;p&gt;I do have two other rules which work fine. example: &lt;br /&gt;&amp;lt;RULE name=&amp;quot;Art&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;MATCH url=&amp;quot;^art/(.*)/(.*)/(.*).html&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;ACTION type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;/ArtistDetail.aspx?name={R:1}&amp;amp;amp;id={R:3}&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;/ACTION&amp;gt;&lt;br /&gt;&amp;lt;/RULE&amp;gt;&lt;/p&gt;
&lt;p&gt;this works like a charm so i don&amp;#39;t quite know what i&amp;#39;m doing wrong here. What am i missing? &lt;/p&gt;
&lt;p&gt;Thanks ahead of time,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-Stephen&lt;/p&gt;</description></item><item><title>Re: IIS7 rewrite to insert a new vdir</title><link>http://forums.iis.net/p/1162118/1922402.aspx#1922402</link><pubDate>Tue, 27 Oct 2009 22:43:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922402</guid><dc:creator>iis9002</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Have answer for myself&lt;/p&gt;
&lt;p&gt;&amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;temp/{PATH_INFO}&amp;quot; appendQueryString=&amp;quot;true&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;But weired thing is if I go to &lt;a href="http://foo.com/anypath"&gt;http://foo.com/anypath&lt;/a&gt;, sometimes, it is correct, but sometimes it redirects to &lt;a href="http://foo.com/temp/anypath"&gt;http://foo.com/temp/anypath&lt;/a&gt;, especially after I clear cache. Could this be a bug in IIS or am I missing sth here&lt;/p&gt;</description></item><item><title>Seeing rewritten URI in status</title><link>http://forums.iis.net/p/1154111/1889007.aspx#1889007</link><pubDate>Mon, 05 Jan 2009 10:27:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889007</guid><dc:creator>DarkMaster</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Perhaps a dumb/newbie question but still - just how do I get the rewrite module to display already rewritten URI in browser status eg. when you go over the link, in the status bar (bottom of the browser) to display rewritten URL - not just after the URL has been visited already and rewritten after that - I mean I see this all the time on your pages too - I somewhat doubt that you have modified all your .NET code to output manually rewritten links - or did you?&lt;/p&gt;
&lt;p&gt;I know to have this effect in some test scenarios with ISAPI_REWRITE - it did that with using rewrite maps in both directions (rewrite/redirect) and the mouse-over-links got rewritten before I actually clicked one.&lt;/p&gt;
&lt;p&gt;So my question - is this doable with new (and extremely great) URL Rewrite engine for IIS? Or am I to go modify the ASP code to output the actual rewritten links and then just apply the rules to redirect? OR am I missing something very obvious (like I already did in the past *LOL*)?&lt;/p&gt;
&lt;p&gt;Thank you in advance for answer/suggestions!&lt;/p&gt;</description></item><item><title>Re: Redirecting one dynamic URL to another</title><link>http://forums.iis.net/p/1152359/1881932.aspx#1881932</link><pubDate>Mon, 13 Oct 2008 20:13:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881932</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;One thing to check is how your rule evaluates the query string. Note that the query string is not evaluated by the rule&amp;#39;s pattern, instead it should be evaluated in a rule&amp;#39;s condition by using {QUERY_STRING} server variable, e.g.:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;rule name=&amp;quot;redirect&amp;quot; stopProcessing=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;match url=&amp;quot;^buying/search/details\.aspx$&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add input=&amp;quot;{QUERY_STRING}&amp;quot; pattern=&amp;quot;^id=([0-9]+)$&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type=&amp;quot;Redirect&amp;quot; url=&amp;quot;Search.aspx?mls={C:1}&amp;quot; redirectType=&amp;quot;Permanent&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/rule&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Redirecting one dynamic URL to another</title><link>http://forums.iis.net/p/1152359/1881925.aspx#1881925</link><pubDate>Mon, 13 Oct 2008 19:06:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881925</guid><dc:creator>alorlious</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I&amp;#39;m trying to setup a redirect from this:&lt;br /&gt;http://www.contoso.com/buying/search/details.aspx?id=2538244&lt;br /&gt;&lt;br /&gt;to this:&lt;br /&gt;http://www.contoso.com/Search.aspx?mls=2538244&lt;/p&gt;&lt;p&gt;and I can&amp;#39;t seem to get it to work - any ideas? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>