<?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 'querystring'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=querystring&amp;orTags=0</link><description>Search results matching tag 'querystring'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: confused about &amp;quot;rewrite module&amp;quot;</title><link>http://forums.iis.net/p/1162418/1923775.aspx#1923775</link><pubDate>Sat, 07 Nov 2009 10:54:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923775</guid><dc:creator>mreynol5</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;certainly.&amp;nbsp; I used the word &amp;quot;stripped&amp;quot; becaise I could not think of another.&amp;nbsp; Here&amp;#39;s what I see:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://123.123.123.123/cv/service1.asmx/getAccountInfo?acct=12345"&gt;http://123.123.123.123/cv/service1.asmx/getAccountInfo?acct=12345&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This performs as though there were no &amp;quot;?acct=1234&amp;quot; passed in.&amp;nbsp; It returns only the parent node (i.e.: no data).&amp;nbsp; Note that this is a call to a LINQ enabled web service that queries a SQL table and returns a &amp;quot;string-ized&amp;quot; XML form.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://localhost/cv/service1.asmx/getAccountInfo?acct=12345"&gt;http://localhost/cv/service1.asmx/getAccountInfo?acct=12345&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This returns data when run on the web server.&amp;nbsp; The other fails no matter where it is run.&amp;nbsp; Testing from the VS 2008 &amp;quot;Test Harness&amp;quot; via &amp;quot;debug&amp;quot; produces a good result however it substitutes &amp;quot;localhost&amp;quot; for the ip address.&amp;nbsp; Note that the IP address that I am using is the external IP and has been verified via &amp;quot;whatismyip.com&amp;quot;.&amp;nbsp; I have a router in place and have opened Port 80 which is forwarded to the proper server on my network.&lt;/p&gt;</description></item><item><title>Re: Look at my URL</title><link>http://forums.iis.net/p/1157647/1903767.aspx#1903767</link><pubDate>Thu, 14 May 2009 16:31:39 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903767</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Nice repro!&lt;/p&gt;
&lt;p&gt;Can you clarify this: &lt;/p&gt;
&lt;div class="s3"&gt;&amp;gt;&amp;gt; however, I do need params passed via querystring attached in the rewrite, including (a=) if not found in &lt;b&gt;pattern&lt;/b&gt; &amp;lt;&amp;lt;&lt;/div&gt;
&lt;div class="s3"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="s3"&gt;Does it mean that if the url is &lt;a href="http://www.cbengine.net/1234/comments/?a=graphs&amp;amp;p=5678"&gt;http://www.cbengine.net/1234/comments/?a=graphs&amp;amp;p=5678&lt;/a&gt;&amp;nbsp;then you want to ignore the query string? Can you give an example of the URL where you would use the query string?&lt;/div&gt;</description></item><item><title>Look at my URL</title><link>http://forums.iis.net/p/1157647/1903725.aspx#1903725</link><pubDate>Thu, 14 May 2009 12:21:53 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903725</guid><dc:creator>goldentine</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Can someone please&amp;nbsp;take a look at what I have going on here.&amp;nbsp; I&amp;#39;ve documented the issues I&amp;#39;m having, along with what I need&amp;nbsp;on this page pretty well... should be self explanatory.&amp;nbsp; I&amp;#39;ve also posted the &amp;lt;rule&amp;gt; code on the page for examination...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Rewrite:&lt;/strong&gt;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.cbengine.net/1234/comments"&gt;http://www.cbengine.net/1234/comments&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Actual URL:&lt;/strong&gt;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.cbengine.net/product/index.cfm?p=1234&amp;amp;a=comments"&gt;http://www.cbengine.net/product/index.cfm?p=1234&amp;amp;a=comments&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been at this for days now and really&amp;nbsp;need to move on to other things... so any help would be awesome.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thanks&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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: Rewrite input with parameters. (question mark ? issue)</title><link>http://forums.iis.net/p/1157366/1902690.aspx#1902690</link><pubDate>Mon, 04 May 2009 18:23:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1902690</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;The pattern that is specified in the &amp;lt;match&amp;gt; element of the rule is evaluated agains the URL path only - without query string. This article explains that in more details: &lt;a href="http://learn.iis.net/page.aspx/465/url-rewrite-module-configuration-reference/#Accessing_URL_Parts_from_a_Rewrite_Rule"&gt;http://learn.iis.net/page.aspx/465/url-rewrite-module-configuration-reference/#Accessing_URL_Parts_from_a_Rewrite_Rule&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For an example of a rule that rewrites based on the query string parameters, check out this article: &lt;a href="http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/"&gt;http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/&lt;/a&gt;, tip #9. &lt;/p&gt;</description></item><item><title>Re: Query string with multiple parameters</title><link>http://forums.iis.net/p/1155611/1894995.aspx#1894995</link><pubDate>Thu, 26 Feb 2009 17:58:28 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1894995</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;If parameters can be in any order within the query string then you can try something like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;rule&amp;gt;&lt;br /&gt;&amp;lt;match url=&amp;quot;page\.aspx$&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add input=&amp;quot;{QUERY_STRING}&amp;quot; pattern=&amp;quot;(?:^|&amp;amp;amp;)p1=(\d+)(?:&amp;amp;amp;|$)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add input=&amp;quot;##{C:1}##_{QUERY_STRING}&amp;quot; pattern=&amp;quot;##([^#]+)##_.*p2=(\d+)(?:&amp;amp;|$)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;lt;action type=&amp;quot;rewrite&amp;quot; url=&amp;quot;host/path/{rewriteMap1:{C:1}}/{rewriteMap2:{C:2}}&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;/p&gt;</description></item><item><title>Re: help with IIS7 rewrite rule (rewrite whole QS as 1 string)</title><link>http://forums.iis.net/p/1154370/1890411.aspx#1890411</link><pubDate>Mon, 19 Jan 2009 19:10:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1890411</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;URL rewrite module is only supported on IIS 7 and further. To do the same on IIS 6 you have to use some other URL rewriting module, for example ISAPI Rewrite.&lt;/p&gt;</description></item><item><title>Re: help with IIS7 rewrite rule (rewrite whole QS as 1 string)</title><link>http://forums.iis.net/p/1154370/1890230.aspx#1890230</link><pubDate>Sat, 17 Jan 2009 01:09:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1890230</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;So basically you want to rewrite from jsbox.js to jsbox.aspx and keep the original query string. In that case this rule should work for you:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;rule name=&amp;quot;Rewrite&amp;quot; patternSyntax=&amp;quot;Wildcard&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;match url=&amp;quot;jsbox.js&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;jsbox.aspx&amp;quot; &lt;strong&gt;appendQueryString=&amp;quot;true&amp;quot;&lt;/strong&gt; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/rule&amp;gt;&lt;/p&gt;
&lt;p&gt;If you want to make rewriting decisions based on the query string then you would need to modify the rule as below:&lt;/p&gt;
&lt;p&gt;&amp;lt;rule name=&amp;quot;Rewrite&amp;quot; patternSyntax=&amp;quot;Wildcard&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;lt;match url=&amp;quot;jsbox.js&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;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; &lt;strong&gt;&amp;lt;add input=&amp;quot;{QUERY_STRING}&amp;quot; pattern=&amp;quot;some pattern here&amp;quot; /&amp;gt;&lt;/strong&gt;&lt;br /&gt;&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;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;jsbox.aspx&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&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: What am I doing wrong?</title><link>http://forums.iis.net/p/1153012/1884756.aspx#1884756</link><pubDate>Thu, 13 Nov 2008 16:46:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1884756</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;There are many articles about using URL rewrite module available here &lt;a href="http://learn.iis.net/page.aspx/460/using-url-rewrite-module"&gt;http://learn.iis.net/page.aspx/460/using-url-rewrite-module&lt;/a&gt;. &lt;/p&gt;</description></item></channel></rss>