<?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 'Wildcards'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=Wildcards&amp;orTags=0</link><description>Search results matching tag 'Wildcards'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Remove all wildcard application mappings from a VDir</title><link>http://forums.iis.net/p/1160632/1915775.aspx#1915775</link><pubDate>Thu, 03 Sep 2009 17:24:03 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1915775</guid><dc:creator>Jerry Kincade</dc:creator><cs:applicationKey>configuration__scripting--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;We have a repeated requirement to pop the properties on a particular VD in IIS 6 and remove the wildcard application mappings.&amp;nbsp; It&amp;#39;s one of those annoying mouse-and-keyboard drills that you would rather train a Rhesus monkey to do for you.&lt;/p&gt;&lt;p&gt;Is there a WMI/Scripting interface that I can do this with scriptomagically?&amp;nbsp; I already use some VBS and AutoIt to avoid many other monkey-do steps, and would like to add this one to the list.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Help needed with migrating ISAPI_Rewrite 2.9 rule to IIS7 Url Rewrite</title><link>http://forums.iis.net/p/1159396/1910894.aspx#1910894</link><pubDate>Mon, 20 Jul 2009 21:20:24 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910894</guid><dc:creator>DanielVL</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;You can try wildcard matching instead of regex (to simplify it) and then change the matching pattern to something like:&lt;/p&gt;
&lt;p&gt;&amp;quot;product/*/*&amp;quot; where {R:1} would be 66 and {R:2} would be Supplier/Product+Name&lt;/p&gt;
&lt;p&gt;Please note that I removed the leading (the first) slash &amp;#39;/&amp;#39; from the matching pattern, it is not needed.&lt;/p&gt;</description></item><item><title>Re: Rewrite Rule Not Working</title><link>http://forums.iis.net/p/1158049/1905990.aspx#1905990</link><pubDate>Fri, 05 Jun 2009 19:41:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1905990</guid><dc:creator>ixoye</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;When you say that I need to use &amp;quot;*&amp;quot; host header binding, does that mean that I have to set up &lt;strong&gt;*.mysite.com&lt;/strong&gt; as a host name in IIS 7? I tried it&amp;nbsp;but I got an error saying that &amp;quot;*&amp;quot; is an invalid character.&lt;/p&gt;
&lt;p&gt;Thank you for all your help.&lt;/p&gt;
&lt;p&gt;BTW,&amp;nbsp;I changed my rule from &amp;quot;Redirect&amp;quot; to &amp;quot;Rewirte&amp;quot; and it did not work. It only works with &amp;quot;Redirect&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&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>IIS6 Wildcards and problems with spaces in URL</title><link>http://forums.iis.net/p/1152791/1883620.aspx#1883620</link><pubDate>Mon, 03 Nov 2008 16:43:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1883620</guid><dc:creator>PiotrSmolanski</dc:creator><cs:applicationKey>configuration__scripting--1</cs:applicationKey><description>&lt;p&gt;I have written and tested an url rewriter on a Vista machine and now wanted to deploy it on Win 2003 server running IIS6. The problem is that when I enable the wildcards (disabling the verification of whether the file exists), the IIS stops accepting spaces in URLs. So paths like these:&lt;/p&gt;&lt;p&gt;http://acme.com/images library/img 20081002.jpg&lt;/p&gt;&lt;p&gt; http://acme.com/images%20library/img%2020081002.jpg&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;do not resolve and come back with 404. I have tested it with the URL rewriter turned on and off, this behaviour is consistent - the problem occurs only when wildcards are defined, goes away instantly when they are off.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;is there any way to make IIS6 correctly interpret such paths without going through the arduous process of removing spaces everywhere and making sure that no other developer uses them in the solution and no operator uploads image with a space in the file name from now on?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: wildcard host header</title><link>http://forums.iis.net/p/1150524/1878930.aspx#1878930</link><pubDate>Wed, 10 Sep 2008 02:34:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878930</guid><dc:creator>brahmg</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;If it&amp;#39;s ok I&amp;#39;d like to tag along and add my own question to this.. Basically I&amp;#39;m in the same boat, I tried to use your example and modify it for my case but I can&amp;#39;t seem to get it to work as a Rewrite..while it does write out correctly as a Redirect . When I try it as a rewrite I receive a &amp;quot;Bad Request&amp;quot; message..&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m trying to setup dev environments, and the way that I have to set up the server is.&lt;/p&gt;&lt;p&gt;module.username.server.dns.com so.. basically.. testmod.mikesmith.devbox.companyname.com, and I need it to rewrite to&lt;/p&gt;&lt;p&gt;mikesmith.devbox.companyname.com/testmod&lt;/p&gt;&lt;p&gt;I&amp;#39;ve set up a Proxy site with no bindings, and a site named mikesmith.devbox.companyname.com&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;With the follow (and set to redirect) it works perfectly. Redirecting to&amp;nbsp; mikesmith.devbox.companyname.com/testmod&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;rule name=&amp;quot;Proxy by host&amp;quot; stopProcessing=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;match url=&amp;quot;(.*)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; pattern=&amp;quot;^(.*)\.([^.]+\.devbox\.companyname\.com)$&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;http://{C:2}/{C:1}&amp;quot; appendQueryString=&amp;quot;false&amp;quot; redirectType=&amp;quot;Permanent&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Yet when I change it to rewrite (as seen above).. it flops. I am new to regular expressions, and rewrites so any help would be great.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>trying to do a urlrewrite of ~/home to /Pages/Home.aspx with integrated mode</title><link>http://forums.iis.net/p/1151311/1877555.aspx#1877555</link><pubDate>Mon, 25 Aug 2008 04:57:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1877555</guid><dc:creator>pkellner</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I&amp;#39;m using asp.net 3.5 and iis7.&amp;nbsp; My host does not support wildcard mapping but does support integrated mode.&amp;nbsp; Can someone point me at or suggest how to do that?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: wildcard host header</title><link>http://forums.iis.net/p/1150524/1874553.aspx#1874553</link><pubDate>Mon, 21 Jul 2008 16:34:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1874553</guid><dc:creator>DanielVL</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I think Ruslan will be out of office today, so I think what you need is something like:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;rule name=&amp;quot;Host example&amp;quot; patternSyntax=&amp;quot;Wildcard&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;match url=&amp;quot;*&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;&amp;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; pattern=&amp;quot;*.example.com&amp;quot; /&amp;gt;&lt;br /&gt;&lt;/strong&gt;&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;lt;action type=&amp;quot;Redirect&amp;quot; url=&amp;quot;&lt;a href="http://www.live.com/"&gt;http://www.live.com&lt;/a&gt;&amp;quot; redirectType=&amp;quot;Permanent&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/rule&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: wildcard host header</title><link>http://forums.iis.net/p/1150524/1874422.aspx#1874422</link><pubDate>Sat, 19 Jul 2008 06:15:55 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1874422</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Host header can be used within rewrite rules.&amp;nbsp;Can you give an example of what&amp;nbsp;kind of rewriting you want to do?&lt;/p&gt;</description></item></channel></rss>