<?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>IIS7 - URL Rewrite Module</title><link>http://forums.iis.net/1152.aspx</link><description>All about the URL Rewrite Module for IIS 7.0. Use this forum to ask URL Rewiter questions, discuss issues, and request features.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: trouble rewriting a root directory without a slash</title><link>http://forums.iis.net/thread/1881415.aspx</link><pubDate>Tue, 07 Oct 2008 03:27:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881415</guid><dc:creator>DanielVL</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881415.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1881415</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This scenario is broken, we are expecting always the trailing slash in the root directory.&amp;nbsp;Please send me a message if you need a fix for this. Sorry about this inconvenience.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>trouble rewriting a root directory without a slash</title><link>http://forums.iis.net/thread/1881412.aspx</link><pubDate>Tue, 07 Oct 2008 00:34:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881412</guid><dc:creator>rberk</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881412.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1881412</wfw:commentRss><description>&lt;p&gt;I want to write a simple rule that says if someone requests &amp;quot;http://localhost/test&amp;quot; or &amp;quot;http://localhost/test/&amp;quot; then execute &amp;quot;http://localhost/test/service.svc/&amp;quot;.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The following rule handles &amp;quot;http://localhost/test/&amp;quot; fine, but not &amp;quot;http://localhost/test&amp;quot;. &lt;/p&gt;&lt;p&gt;&amp;lt;rule name=&amp;quot;service root&amp;quot; enabled=&amp;quot;true&amp;quot; stopProcessing=&amp;quot;true&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;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;service.svc/&amp;quot; appendQueryString=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The failed request tracing shows:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;URL_REWRITE_START RequestURL=&amp;quot;/test&amp;quot;, Scope=&amp;quot;Distributed&amp;quot; 00:01:46.297 &lt;br /&gt;RULE_EVALUATION_START RuleName=&amp;quot;service root&amp;quot;, RequestURL=&amp;quot;&amp;quot;, QueryString=&amp;quot;&amp;quot;, PatternSyntax=&amp;quot;ECMAScript&amp;quot;, StopProcessing=&amp;quot;true&amp;quot;, RelativePath=&amp;quot;/test/&amp;quot; 00:01:46.297 &lt;br /&gt;RULE_EVALUATION_END RuleName=&amp;quot;service root&amp;quot;, RequestURL=&amp;quot;test&amp;quot;, QueryString=&amp;quot;&amp;quot;, StopProcessing=&amp;quot;true&amp;quot;, Succeeded=&amp;quot;false&amp;quot; 00:01:46.297 &lt;br /&gt;URL_REWRITE_END RequestURL=&amp;quot;&amp;quot; 00:01:46.297 &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Given our hosting configuration and deployment constraints, I need this rule to exist in the web.config of the &amp;quot;test&amp;quot; directory.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Ideas anyone? &lt;/p&gt;&lt;p&gt;Thanks. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>