<?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>Help with File link Redirection</title><link>http://forums.iis.net/thread/1925660.aspx</link><pubDate>Fri, 20 Nov 2009 20:49:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925660</guid><dc:creator>IISJP56</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1925660.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1925660</wfw:commentRss><description>&lt;p&gt;First of all, thanks for all the great walkthroughs on this site.&amp;nbsp; I&amp;#39;ve gotten a reverse proxy going very quickly.&lt;/p&gt;
&lt;p&gt;The only issue remaining for me is that links to files, like PDFs or DOCs, aren&amp;#39;t rewritten.&amp;nbsp; I tried doing something similar to the &amp;quot;^text/html&amp;quot; outbound rewrite&amp;nbsp;rule here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://learn.iis.net/page.aspx/659/reverse-proxy-with-url-rewrite-v2-and-application-request-routing/"&gt;http://learn.iis.net/page.aspx/659/reverse-proxy-with-url-rewrite-v2-and-application-request-routing/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;using preconditions for &amp;quot;^application/msword&amp;quot; and &amp;quot;^application/pdf&amp;quot;, but it&amp;#39;s not working.&amp;nbsp; Can anyone point me at some documentation for rewriting links inside responses for files?&amp;nbsp; Thanks in advance for any help.&lt;/p&gt;</description></item><item><title>Rule import didnt work.</title><link>http://forums.iis.net/thread/1925598.aspx</link><pubDate>Fri, 20 Nov 2009 14:48:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925598</guid><dc:creator>zone97</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1925598.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1925598</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I tried the importer on 1.1 and rc 2.0 and it wouldnt rewrite correctly. here is the old rewrite code.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;# Listings&lt;br /&gt;RewriteRule ^.*/listing/([a-zA-Z0-9_]+)\.(html|htm)$ /listing/detail.php?listing=$1&lt;br /&gt;RewriteRule ^.*/listing/([a-zA-Z0-9_]+)\.(html|htm)#([a-zA-Z0-9_]+)$ /listing/detail.php?listing=$1#2&lt;br /&gt;RewriteRule ^.*/listing/guide/([a-zA-Z0-9_]+)/?([a-zA-Z0-9_]+)?/?([a-zA-Z0-9_]+)?/?([a-zA-Z0-9_]+)?/?([a-zA-Z0-9_]+)?$ /listing/results.php?category1=$1&amp;amp;category2=$2&amp;amp;category3=$3&amp;amp;category4=$4&amp;amp;category5=$5&lt;br /&gt;RewriteRule ^.*/listing/location/([a-zA-Z0-9_]+)/?([a-zA-Z0-9_]+)?/?([a-zA-Z0-9_]+)?$ /listing/results.php?country=$1&amp;amp;state=$2&amp;amp;region=$3&lt;br /&gt;RewriteRule ^.*/listing/reviews/([a-zA-Z0-9_]+)$ /listing/reviewcomments.php?listing=$2&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Help converting .htaccess to web.config</title><link>http://forums.iis.net/thread/1925382.aspx</link><pubDate>Thu, 19 Nov 2009 10:45:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925382</guid><dc:creator>Phixtit</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1925382.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1925382</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need help to convert a mod rewrite.&lt;/p&gt;
&lt;p&gt;I have this as .htaccess:&lt;/p&gt;&lt;span&gt;
&lt;p&gt;RewriteEngine on&lt;/p&gt;
&lt;p&gt;RewriteBase /facebook/&lt;/p&gt;
&lt;p&gt;# if you installed facebook in a subdir use something like below and remove the line above&lt;/p&gt;
&lt;p&gt;#&lt;/p&gt;
&lt;p&gt;# RewriteBase /subdirectory/&lt;/p&gt;
&lt;p&gt;RewriteRule ^admin/$ index.php/admin/login/&lt;/p&gt;
&lt;p&gt;RewriteRule ^admin$ index.php/admin/login/&lt;/p&gt;
&lt;p&gt;RewriteCond $1 !^(index\.php|application/images|application/scripts|application/css|application/content|application/settings|favicon.ico)&lt;/p&gt;
&lt;p&gt;RewriteRule ^(.*)$ index.php/$1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So far I have this as web.config:&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.webServer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rewrite&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;lt;rules&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;lt;rule name=&amp;quot;Imported Rule 1&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;^admin/$&amp;quot; ignoreCase=&amp;quot;false&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;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;index.php/admin/login/&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;lt;/rule&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;lt;rule name=&amp;quot;Imported Rule 2&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;^admin$&amp;quot; ignoreCase=&amp;quot;false&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;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;index.php/admin/login/&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;lt;/rule&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;lt;rule name=&amp;quot;Imported Rule 3&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;^(.*)$&amp;quot; ignoreCase=&amp;quot;false&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 logicalGrouping=&amp;quot;MatchAll&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add input=&amp;quot;{R:1}&amp;quot; pattern=&amp;quot;^(index\.php|application/images|application/scripts|application/css|application/content|application/settings|favicon.ico)&amp;quot; ignoreCase=&amp;quot;false&amp;quot; negate=&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;/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;Rewrite&amp;quot; url=&amp;quot;index.php/{R:1}&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;lt;/rule&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;lt;/rules&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rewrite&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/system.webServer&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When converting it said the following wasn&amp;#39;t supported:&lt;/p&gt;
&lt;p&gt;RewriteBase /facebook/&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;&lt;/span&gt;</description></item><item><title>rewrite/redirect based on url?</title><link>http://forums.iis.net/thread/1925113.aspx</link><pubDate>Tue, 17 Nov 2009 19:40:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925113</guid><dc:creator>joshcurrier</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1925113.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1925113</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&amp;#39;ve been reading docs and searching all day and I&amp;#39;m having trouble figuring out how to do this with IIS.&amp;nbsp; We have a helpdesk system with two helpdesk websites running on the same server.&amp;nbsp; Each helpdesk is directly accessible by appending the main url with /helpdesk/projX.html.&amp;nbsp; What I need to do is allow different dns hostnames to redirect to different /projX.html urls.&amp;nbsp; A request to the root of helpdesk.site.com would ideally bring the user to helpdesk.site.com/helpdesk/proj1.html, while helpdesk.site.se would bring them to helpdesk.site.se/helpdesk/proj2.html.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any suggestions?&amp;nbsp; This is cake in Apache but I&amp;#39;m new to&amp;nbsp;IIS so I&amp;#39;m a little lost.&amp;nbsp;&amp;nbsp;I do have the rewrite module installed.&lt;/p&gt;</description></item><item><title>Error in regex causes remote IIS manger to crash.</title><link>http://forums.iis.net/thread/1925044.aspx</link><pubDate>Tue, 17 Nov 2009 13:14:24 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925044</guid><dc:creator>RQuadling</dc:creator><slash:comments>9</slash:comments><comments>http://forums.iis.net/thread/1925044.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1925044</wfw:commentRss><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;Not exactly sure whose issue this is but ...&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the IIS Manger on my desktop to administer our&amp;nbsp;3 IIS7 web servers.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m attempting to create a URL Rewrite Rule.&lt;/p&gt;
&lt;p&gt;I had inadvertently made a mistake with the regex.&lt;/p&gt;
&lt;p&gt;When I come to test the regex pattern, the manager closes.&amp;nbsp;I sometimes get an error first.&lt;/p&gt;
&lt;p&gt;If I try this via RDP on the server, I get the proper message about my broken regex and&amp;nbsp;I can continue.&lt;/p&gt;
&lt;p&gt;It seems that the error dialog doesn&amp;#39;t get handled remotely and causes the local manager to quit.&lt;/p&gt;
&lt;p&gt;My local Application Event Log has the following entry:&lt;/p&gt;&lt;font size="1"&gt;&lt;/font&gt;&lt;font size="1"&gt;
&lt;div style="BORDER-BOTTOM:black 1px solid;BORDER-LEFT:black 1px solid;BACKGROUND-COLOR:#f7f7f7;BORDER-TOP:black 1px solid;BORDER-RIGHT:black 1px solid;"&gt;
&lt;p&gt;IISMANAGER_CRASH&lt;/p&gt;
&lt;p&gt;IIS Manager terminated unexpectedly.&lt;/p&gt;
&lt;p&gt;Exception:System.EntryPointNotFoundException: Unable to find an entry point named &amp;#39;TaskDialogIndirect&amp;#39; in DLL &amp;#39;comctl32&amp;#39;.&lt;/p&gt;
&lt;p&gt;at Microsoft.Web.Management.Iis.Rewrite.RewriteModule.MessageBoxEx.NativeMethods.TaskDialogIndirect(TaskDialogConfig&amp;amp; pTaskConfig, Int32&amp;amp; pnButton, Int32&amp;amp; pnRadioButton, Boolean&amp;amp; pfVerificationFlagChecked)&lt;/p&gt;
&lt;p&gt;at Microsoft.Web.Management.Iis.Rewrite.RewriteModule.MessageBoxEx.ShowErrorMessage(IntPtr hwndParent, String caption, String message, Exception ex, Boolean isWarning)&lt;/p&gt;
&lt;p&gt;at Microsoft.Web.Management.Iis.Rewrite.RewriteModule.DisplayErrorMessage(IntPtr handle, Exception exception, String caption, ResourceManager resourceManager)&lt;/p&gt;
&lt;p&gt;at Microsoft.Web.Management.Iis.Rewrite.RewriteTaskForm.DisplayErrorMessage(Exception exception, ResourceManager resourceManager)&lt;/p&gt;
&lt;p&gt;at Microsoft.Web.Management.Iis.Rewrite.TestPatternForm.OnTestButtonClick(Object sender, EventArgs e)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Control.OnClick(EventArgs e)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Button.OnClick(EventArgs e)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp; m)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Button.WndProc(Message&amp;amp; m)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Application.RunDialog(Form form)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Form.ShowDialog()&lt;/p&gt;
&lt;p&gt;at Microsoft.Web.Management.Iis.Rewrite.MatchUrlUserControl.OnTestPatternButton_Click(Object sender, EventArgs e)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Control.OnClick(EventArgs e)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Button.OnClick(EventArgs e)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp; m)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Button.WndProc(Message&amp;amp; m)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)&lt;/p&gt;
&lt;p&gt;at System.Windows.Forms.Application.Run(Form mainForm)&lt;/p&gt;
&lt;p&gt;at Microsoft.Web.Management.Host.Shell.ShellApplication.Execute(Boolean localDevelopmentMode, Boolean resetPreferences, Boolean resetPreferencesNoLaunch)&lt;/p&gt;
&lt;p&gt;Process:InetMgr&lt;/p&gt;
&lt;p&gt;For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.&lt;/p&gt;&lt;/div&gt;&lt;/font&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Richard Quadling.&lt;/p&gt;</description></item><item><title>Want to Make Rules User-Manageable</title><link>http://forums.iis.net/thread/1924727.aspx</link><pubDate>Sat, 14 Nov 2009 00:42:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924727</guid><dc:creator>mikeinsf</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1924727.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1924727</wfw:commentRss><description>I&amp;#39;ve developed a CMS that allows the users to define their own url mappings such as:

/news  ---&amp;gt;  /default.aspx?pid=3


Is there a way to move the rewrite rules block out of web.config to a file that the application has permission to modify on the fly?

I&amp;#39;d like to port my existing Url Rewrite code to this module, but I need to maintain the ability for my end-users to manage their own rules.</description></item><item><title>help with simple rewrite rule</title><link>http://forums.iis.net/thread/1924613.aspx</link><pubDate>Fri, 13 Nov 2009 11:45:03 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924613</guid><dc:creator>nolovelust</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1924613.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1924613</wfw:commentRss><description>Hi i am new to iss 7 urlrewriting and want to change iis7 wizard suggested rule.
Rule is &amp;quot;site,1,my-title&amp;quot;


        
            
                
                    
                    
                        
                        
                    
                    
                
            
        

i am trying to change it so link like 
&amp;quot;site,1,my-title.aspx&amp;quot; 

calls 

site.aspx?id={R:1}&amp;amp;title={R:2}

but in the mean time i want to be able to pass other variables such as
&amp;quot;site,1,my-title.aspx?p=1&amp;amp;get=10&amp;quot;
without having to rely on static rule.

how should i adjust 

match url=&amp;quot;^site,([^/]+),([^/]+)/?$&amp;quot; 

in order to get this right?
thanks</description></item><item><title>URL Rewrite 1.0 writes the original URL into the IIS logs not the rewritten URL</title><link>http://forums.iis.net/thread/1902201.aspx</link><pubDate>Tue, 28 Apr 2009 22:33:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1902201</guid><dc:creator>MattDuguid</dc:creator><slash:comments>7</slash:comments><comments>http://forums.iis.net/thread/1902201.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1902201</wfw:commentRss><description>&lt;p&gt;This is a massive issue for us as all of our tools and reporting are based around the rewritten URL.&lt;/p&gt;
&lt;p&gt;We have had a good look but can&amp;#39;t find any way of tweaking this behaviour, does any one have any&amp;nbsp;ideas?&lt;/p&gt;
&lt;p&gt;Its such a big deal for us that we are considering going back to the other product we used under IIS6 which has since been ported to the IIS7 platform.&lt;/p&gt;
&lt;p&gt;Even URL Rewrite 1.1 doesn&amp;#39;t appear to fix this or offer the ability to choose.&lt;/p&gt;</description></item><item><title>rewrite old url's into new pattern? How to do it?</title><link>http://forums.iis.net/thread/1924439.aspx</link><pubDate>Thu, 12 Nov 2009 10:59:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924439</guid><dc:creator>Deech</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1924439.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1924439</wfw:commentRss><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;we&amp;#39;ve changed all our server to two new load balanced server with 2008.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;but on the old server we used an other kind of rewrite.&lt;/p&gt;
&lt;p&gt;urls are like &lt;a href="http://www.mytest.com/index.html-id-2-id1-3"&gt;http://www.mytest.com/index.html-id-2-id1-3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;now we use the urls like : &lt;a href="http://www.mytest.com/index/2/3"&gt;http://www.mytest.com/index/2/3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but how can we manage that when old indexed links from google are redirecting to the correct page?&lt;/p&gt;
&lt;p&gt;So how can I make a rule that when users click on this link in google :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mytest.com/index.html-id-2-id1-3"&gt;http://www.mytest.com/index.html-id-2-id1-3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;they enter my site and are redirected to the url :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mytest.com/index/2/3"&gt;http://www.mytest.com/index/2/3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thanks a lot for any help.&lt;/p&gt;</description></item><item><title>make url_rewrite more dynamic?</title><link>http://forums.iis.net/thread/1923245.aspx</link><pubDate>Tue, 03 Nov 2009 16:05:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923245</guid><dc:creator>par4gon</dc:creator><slash:comments>4</slash:comments><comments>http://forums.iis.net/thread/1923245.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1923245</wfw:commentRss><description>&lt;p&gt;i have a classic asp build website, all rewrites work except 1 i cannot figure out what todo.&lt;/p&gt;
&lt;p&gt;the complete url is:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mydomain.eu/cat.asp?AC=435&amp;amp;BC=447&amp;amp;CC=431&amp;amp;bit=11&amp;amp;sortby=19&amp;amp;page=1"&gt;www.mydomain.eu/cat.asp?AC=435&amp;amp;BC=447&amp;amp;CC=431&amp;amp;bit=11&amp;amp;sortby=19&amp;amp;page=1&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;with a rewrite map i can change AC=435 to office.&lt;br /&gt;manually i can add a second one&amp;nbsp;BC=447&amp;nbsp;is paper.&lt;/p&gt;
&lt;p&gt;&amp;lt;add key=&amp;quot;/office&amp;quot; value=&amp;quot;/cat.asp?AC=435&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;add key=&amp;quot;/office/paper&amp;quot; value=&amp;quot;/cat.asp?AC=435&amp;amp;amp;BC=447&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt;but the&amp;nbsp;problem is&amp;nbsp;BC and&amp;nbsp;CC and Bit and sortby and&amp;nbsp;page&amp;nbsp;aren&amp;#39;t always filled&lt;br /&gt;so i have to create 36 add keys in a&amp;nbsp;rewrite map to cover only the line above.&lt;/p&gt;
&lt;p&gt;is it possible to&amp;nbsp;do it in one rule? or atleast easier?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>convert start numbers in urlpath to variable value</title><link>http://forums.iis.net/thread/1924486.aspx</link><pubDate>Thu, 12 Nov 2009 17:36:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924486</guid><dc:creator>petervdkerk</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1924486.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1924486</wfw:commentRss><description>&lt;p&gt;I have URLS that might look something like this:&lt;br /&gt;- domain.com/10-years-fixed&lt;br /&gt;- domain.com/1-years-fixed &lt;br /&gt;&lt;br /&gt;I want that rewritten to respectively:&lt;br /&gt;- domain.com/page.aspx?years=10&lt;br /&gt;- domain.com/page.aspx?years=1&lt;br /&gt;&lt;br /&gt;So basically get the number part of the path...how can I do so?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Problem with the enforce lower case URLs redirect rule</title><link>http://forums.iis.net/thread/1924734.aspx</link><pubDate>Sat, 14 Nov 2009 03:50:08 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924734</guid><dc:creator>DavidRPotter</dc:creator><slash:comments>6</slash:comments><comments>http://forums.iis.net/thread/1924734.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1924734</wfw:commentRss><description>&lt;p&gt;I added the enforce lower case URLs redirect rule from your &lt;a title="10 URL Rewriting Tips and Tricks" href="http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/"&gt;10 tips article&lt;/a&gt; but it&amp;#39;s not working.&amp;nbsp; My WordPress blog continues to give me a Not Found page.&amp;nbsp; The blog is at:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://test.dpotter.net/technical"&gt;http://test.dpotter.net/technical&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That URL works.&amp;nbsp; When I type this:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://test.dpotter.net/Technical"&gt;http://test.dpotter.net/Technical&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I get Not Found error page.&amp;nbsp; Here are my rules:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;rules&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;clear/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;rule name=&amp;quot;Convert to lower case&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;.*[A-Z].*&amp;quot; ignoreCase=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type=&amp;quot;Redirect&amp;quot; url=&amp;quot;{ToLower:{R:0}}&amp;quot; redirectType=&amp;quot;Permanent&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/rule&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;rule name=&amp;quot;WordPress&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;conditions logicalGrouping=&amp;quot;MatchAll&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add input=&amp;quot;{REQUEST_FILENAME}&amp;quot; matchType=&amp;quot;IsFile&amp;quot; negate=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add input=&amp;quot;{REQUEST_FILENAME}&amp;quot; matchType=&amp;quot;IsDirectory&amp;quot; negate=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;index.php&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/rule&amp;gt;&lt;br /&gt;&amp;lt;/rules&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Thanks,&lt;br /&gt;&lt;strong&gt;&lt;em&gt;David&lt;/em&gt;&lt;/strong&gt;&lt;/code&gt;&lt;code&gt;&lt;/p&gt;&lt;/code&gt;</description></item><item><title>URL rewrite - web.config error</title><link>http://forums.iis.net/thread/1924824.aspx</link><pubDate>Sun, 15 Nov 2009 15:13:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924824</guid><dc:creator>murali.bala</dc:creator><slash:comments>8</slash:comments><comments>http://forums.iis.net/thread/1924824.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1924824</wfw:commentRss><description>&lt;p&gt;Hello All,&lt;/p&gt;&lt;p&gt;I am getting the following error when i run my .aspx page.&lt;/p&gt;&lt;b&gt;&lt;u&gt;Error Code0x8007000d &lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;The configuration section &amp;#39;rewrite&amp;#39; cannot be read because it is missing a section declaration&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have a simple v.aspx page which has the following code:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; Response.Write(Request(&amp;quot;q&amp;quot;)) &lt;br /&gt;
&lt;/p&gt;&lt;p&gt;My hosting server as IIS 7 installed with URL rewrite feature enabled (that&amp;#39;s what they claim)&lt;/p&gt;&lt;p&gt;My web.config file has the following lines under &amp;lt;system.webServer&amp;gt;:&lt;/p&gt;&lt;p&gt;Note: The &amp;lt;rewrite&amp;gt; node has blue &lt;em&gt;squiggly &lt;/em&gt;lines under it &lt;/p&gt;&lt;p&gt;&amp;lt;rewrite&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rules&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rule name=&amp;quot;RewriteUserFriendlyURL1&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;lt;match url=&amp;quot;^([^/]+)/?$&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; &amp;lt;add input=&amp;quot;{REQUEST_FILENAME}&amp;quot; matchType=&amp;quot;IsFile&amp;quot; negate=&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;lt;add input=&amp;quot;{REQUEST_FILENAME}&amp;quot; matchType=&amp;quot;IsDirectory&amp;quot; negate=&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;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;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;v.aspx?q={R:1}&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rule&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rules&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rewrite&amp;gt; &lt;/p&gt;&lt;p&gt;This is very new to me. Please help.&lt;/p&gt;&lt;p&gt;Murali&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Url Rewrite with special characters.</title><link>http://forums.iis.net/thread/1924923.aspx</link><pubDate>Mon, 16 Nov 2009 16:12:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924923</guid><dc:creator>aykuterdogan</dc:creator><slash:comments>5</slash:comments><comments>http://forums.iis.net/thread/1924923.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1924923</wfw:commentRss><description>Hi, my url&amp;#39;s with special characters opens on helicon isapi-rewrite software.. But when i try with urlrewrite it is not working. what can i do?

ex: 

give 404 not open:

http://www.sanalamfi.com/articles/şşşçççööööiiuuuuuiiiiii.html (it is open on helicon isapirewrite)

open on urlrewire : http://www.sanalamfi.com/categories/sample-category.html


thanks.


</description></item><item><title>Permanent redirect to remove index.php for WordPress sites</title><link>http://forums.iis.net/thread/1924735.aspx</link><pubDate>Sat, 14 Nov 2009 04:05:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924735</guid><dc:creator>DavidRPotter</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1924735.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1924735</wfw:commentRss><description>&lt;p&gt;I posted this question on Ruslan&amp;#39;s blog post about &lt;a title="IIS 7 URL Rewrite Module support in WordPress 2.8" href="http://ruslany.net/2009/05/iis-7-url-rewrite-module-support-in-wordpress-28/comment-page-1/#comment-1469"&gt;WordPress 2.8 supporting the URL Rewrite Module&lt;/a&gt;, but it looks like the forums are the best place to get help.&lt;/p&gt;
&lt;p&gt;The rewrite rule to allow using pretty permalinks works well on my IIS7 WordPress site, but I&amp;#39;d like to go one step further.&amp;nbsp; I use Ionic Isapi Rewrite on my IIS6 sites and one of the things I have it do is to issue a permanent redirect to remove the index.php from the URL. The rules looks like this:&lt;/p&gt;&lt;code&gt;RewriteRule ^/(David|Technical)/index.php(.*)$&amp;nbsp;/$1$2&amp;nbsp;[I,R=301]&lt;br /&gt;RewriteRule ^/(David|Technical)/(?!index.php)(?!xmlrpc.php)(?!wp-)(.*)$&amp;nbsp;/$1/index.php/$2 [I,L] &lt;br /&gt;RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} !-d &lt;br /&gt;RewriteRule&amp;nbsp;^/(?!index.php)(?!xmlrpc.php)(?!wp-)(.*)$&amp;nbsp;/index.php/$1&lt;br /&gt;&lt;/code&gt;
&lt;p&gt;Is it possible to do the same thing with the URL Rewrite Module?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;&lt;strong&gt;&lt;em&gt;David&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>URL Rewrite not redirecting as expected</title><link>http://forums.iis.net/thread/1923913.aspx</link><pubDate>Mon, 09 Nov 2009 15:33:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923913</guid><dc:creator>rkr31</dc:creator><slash:comments>4</slash:comments><comments>http://forums.iis.net/thread/1923913.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1923913</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It&amp;#39;s very possible that im doing something wrong here, but if my logic is correct the below should work.&lt;/p&gt;&lt;p&gt;I want it to redirect to http://docs.win1002.vs.domain.co.uk/docs if the url entered is&amp;nbsp; http://docs.win1002.vs.domain.co.uk&lt;/p&gt;&lt;p&gt;Problem is, when i enter this i simply get a redirection loop which makes sense i guess.&amp;nbsp; To get around this i put a condition prior to the one above that should ignore&amp;nbsp; http://docs.win1002.vs.domain.co.uk/docs&lt;/p&gt;&lt;p&gt;Therefore, if the url entered is&amp;nbsp; http://docs.win1002.vs.domain.co.uk it will redirect to  http://docs.win1002.vs.domain.co.uk/docs and because there is a condition to ignore this, should then display the page.&lt;/p&gt;&lt;p&gt;Is this correct or have a got this horribly wrong? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.rustean.net/gallery/urlrewite.jpg" alt="" /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Rewrite to a subdomain of the main site</title><link>http://forums.iis.net/thread/1924292.aspx</link><pubDate>Wed, 11 Nov 2009 16:58:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924292</guid><dc:creator>feelyd</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1924292.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1924292</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been trying something for ages with no sucess, so any help would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m looking to rewrite the following&amp;nbsp;to a subdomain of my main site.&lt;/p&gt;
&lt;p&gt;So I&amp;#39;d like to rewrite &lt;a href="http://www.mainsite.com/SubSite"&gt;http://www.mainsite.com/SubSite&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;to sites.mainsite.com/Default.aspx?Site=SubSite&lt;/p&gt;
&lt;p&gt;Is this possible , can I rewrite to another domain and still preserve the URL.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Rule to catch swf files returns 404 file not found.</title><link>http://forums.iis.net/thread/1924567.aspx</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><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1924567.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1924567</wfw:commentRss><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>Colons in URL breaking Rewrite</title><link>http://forums.iis.net/thread/1918720.aspx</link><pubDate>Tue, 29 Sep 2009 08:36:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918720</guid><dc:creator>Massif</dc:creator><slash:comments>4</slash:comments><comments>http://forums.iis.net/thread/1918720.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1918720</wfw:commentRss><description>&lt;p&gt;I have a simple issue, where having a URL of the form:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://hostname/Special:Page"&gt;http://HostName/Special:Page&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;appears to break the re-write engine,&amp;nbsp;giving an internal error about invalid schemes. URLs which don&amp;#39;t have the colon appear to work fine, but I&amp;#39;m using a port of a large application that relies on inserting colons like this.&lt;/p&gt;
&lt;p&gt;Is there a work around for this? I&amp;#39;d rather not have to manually replace every colon in the code with a different character.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;edit: Using versions 1.1 or 2.0 beta&lt;/p&gt;</description></item><item><title>Elgg web.config for URL rewrite</title><link>http://forums.iis.net/thread/1924108.aspx</link><pubDate>Tue, 10 Nov 2009 18:20:46 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924108</guid><dc:creator>narazana</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1924108.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1924108</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Did anyone try to translate Elgg .htaccess to web.config ? The following is the fresh install of Elgg .htaccess file. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;################&lt;/p&gt;&lt;p&gt;&amp;nbsp;# Elgg htaccess directives&lt;br /&gt;# Copyright Curverider Ltd 2008-2009&lt;br /&gt;# License http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2&lt;br /&gt;# Link http://elgg.org/&lt;br /&gt;&lt;br /&gt;&amp;lt;IfModule !mod_rewrite.c&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ugly ugly hack to detect missing mod_rewrite&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # RedirectMatch must be to an absolute destination, so forces 500 error...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorDocument 500 &amp;quot;Elgg error: Apache does not have mod_rewrite loaded. Please check your Apache setup.&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RedirectMatch 302 .* index.php&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;Files &amp;quot;htaccess_dist&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; order allow,deny&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; deny from all&lt;br /&gt;&amp;lt;/Files&amp;gt;&lt;br /&gt;&lt;br /&gt;# Don&amp;#39;t listing directory&lt;br /&gt;Options -Indexes&lt;br /&gt;&lt;br /&gt;# Follow symbolic links&lt;br /&gt;Options +FollowSymLinks&lt;br /&gt;&lt;br /&gt;# Default handler&lt;br /&gt;DirectoryIndex index.php&lt;br /&gt;&lt;br /&gt;# Turn on expiry&lt;br /&gt;&amp;lt;IfModule mod_expires.c&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ExpiresActive On&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ExpiresDefault &amp;quot;access plus 10 years&amp;quot;&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;br /&gt;&lt;br /&gt;# php 4, apache 1.x&lt;br /&gt;&amp;lt;IfModule mod_php4.c&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorDocument 500 &amp;quot;Elgg error: Elgg does not support PHP 4.&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RedirectMatch 302 .* index.php&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;br /&gt;&lt;br /&gt;# php 4, apache 2&lt;br /&gt;&amp;lt;IfModule sapi_apache2.c&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorDocument 500 &amp;quot;Elgg error: Elgg does not support PHP 4.&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RedirectMatch 302 .* index.php&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;br /&gt;&lt;br /&gt;# php 5, apache 1 and 2&lt;br /&gt;&amp;lt;IfModule mod_php5.c&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;# default memory limit to 64Mb&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;php_value memory_limit 64M&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;# to make sure register global is off&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;php_value register_globals 0&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;# max post size to 8Mb&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;php_value post_max_size 8388608&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;# upload size limit to 5Mb&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;php_value upload_max_filesize 5242880&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;# hide errors, enable only if debug enabled&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;php_value display_errors 0&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;br /&gt;&lt;br /&gt;# Turn on mod_gzip if available&lt;br /&gt;&amp;lt;IfModule mod_gzip.c&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mod_gzip_on yes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_gzip_dechunk yes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_gzip_keep_workfiles No&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_gzip_minimum_file_size 1000&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_gzip_maximum_file_size 1000000&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_gzip_maximum_inmem_size 1000000&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_gzip_item_include mime ^text/.* &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_gzip_item_include mime ^application/javascript$&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_gzip_item_include mime ^application/x-javascript$&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Exclude old browsers and images since IE has trouble with this&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_gzip_item_exclude reqheader &amp;quot;User-Agent: .*Mozilla/4\..*\[&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_gzip_item_exclude mime ^image/.*&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;br /&gt;&lt;br /&gt;## Apache2 deflate support if available&lt;br /&gt;##&lt;br /&gt;## Important note: mod_headers is required for correct functioning across proxies.&lt;br /&gt;##&lt;br /&gt;&amp;lt;IfModule mod_deflate.c&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;BrowserMatch ^Mozilla/4 gzip-only-text/html&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;BrowserMatch ^Mozilla/4\.[0678] no-gzip&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;BrowserMatch \bMSIE !no-gzip&lt;br /&gt;&lt;br /&gt;&amp;lt;IfModule mod_headers.c&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Header append Vary User-Agent env=!dont-vary&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;# The following is to disable compression for actions. The reason being is that these&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;# may offer direct downloads which (since the initial request comes in as text/html and headers&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;# get changed in the script) get double compressed and become unusable when downloaded by IE.&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SetEnvIfNoCase Request_URI action\/* no-gzip dont-vary&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SetEnvIfNoCase Request_URI actions\/* no-gzip dont-vary&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;br /&gt;&lt;br /&gt;# Configure ETags&lt;br /&gt;&amp;lt;FilesMatch &amp;quot;\.(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm|swf)$&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;FileETag MTime Size&lt;br /&gt;&amp;lt;/FilesMatch&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br /&gt;&lt;br /&gt;RewriteEngine on&lt;br /&gt;&lt;br /&gt;# If Elgg is in a subdirectory on your site, you might need to add a RewriteBase line&lt;br /&gt;# containing the path from your site root to elgg&amp;#39;s root. e.g. If your site is&lt;br /&gt;# http://example.com/ and Elgg is in http://example.com/sites/elgg/, you might need &lt;br /&gt;#&lt;br /&gt;#RewriteBase /sites/elgg/&lt;br /&gt;#&lt;br /&gt;# here, only without the # in front.&lt;br /&gt;#&lt;br /&gt;# If you&amp;#39;re not running Elgg in a subdirectory on your site, but still getting lots&lt;br /&gt;# of 404 errors beyond the front page, you could instead try:&lt;br /&gt;#&lt;br /&gt;#RewriteBase /&lt;br /&gt;&lt;br /&gt;RewriteRule ^action\/([A-Za-z0-9\_\-\/]+)$ engine/handlers/action_handler.php?action=$1&lt;br /&gt;&lt;br /&gt;RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)$ services/export/handler.php?view=$1&amp;amp;guid=$2&lt;br /&gt;RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/$ services/export/handler.php?view=$1&amp;amp;guid=$2&lt;br /&gt;RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/([A-Za-z]+)\/([A-Za-z0-9\_]+)\/$ services/export/handler.php?view=$1&amp;amp;guid=$2&amp;amp;type=$3&amp;amp;idname=$4&lt;br /&gt;&lt;br /&gt;RewriteRule ^\_css\/css\.css$ _css/css.php&lt;br /&gt;&lt;br /&gt;RewriteRule ^pg\/([A-Za-z0-9\_\-]+)\/(.*)$ engine/handlers/pagehandler.php?handler=$1&amp;amp;page=$2&lt;br /&gt;RewriteRule ^pg\/([A-Za-z0-9\_\-]+)$ engine/handlers/pagehandler.php?handler=$1&lt;br /&gt;&lt;br /&gt;RewriteRule xml-rpc.php engine/handlers/xml-rpc_handler.php&lt;br /&gt;RewriteRule mt/mt-xmlrpc.cgi engine/handlers/xml-rpc_handler.php&lt;br /&gt;&lt;br /&gt;RewriteRule ^tag/(.+)/?$ engine/handlers/pagehandler.php?handler=search&amp;amp;page=$1&lt;br /&gt;&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;################ &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>URL Rewrite to Apache Server - 502.3 Error</title><link>http://forums.iis.net/thread/1920903.aspx</link><pubDate>Thu, 15 Oct 2009 16:29:34 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1920903</guid><dc:creator>golfguy0082</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1920903.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1920903</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;I&amp;#39;ve been struggling with this for weeks now.&amp;nbsp; I&amp;#39;m a newcomer to the forums here, but I&amp;#39;d be much obliged if someone could help.&amp;nbsp; I have a Windows 2008 R2 server that receives all port 80 and 443 requests that come through my router.&amp;nbsp; From there I want to use ARR/URL Rewrite as a reverse proxy.&amp;nbsp; It works marvelously when I&amp;#39;m routing to other IIS servers.&amp;nbsp; However, on one server I run SVN (using Apache), and whenever I try to route to that server I get a 502.3 error.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;web address:&amp;nbsp; https://&amp;lt;domainname&amp;gt;/svn &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;rule name=&amp;quot;svn&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;svn*&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 logicalGrouping=&amp;quot;MatchAll&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;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;https://figtreesvn/{R:0}&amp;quot; /&amp;gt;&lt;br /&gt; &amp;lt;/rule&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;The other thing to note is if I try to access https://figtreesvn/svn from the local network it works just fine.&amp;nbsp; Any help would be greatly appreciated.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to prevent use of strings after URL rewrite</title><link>http://forums.iis.net/thread/1923810.aspx</link><pubDate>Sun, 08 Nov 2009 09:18:27 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923810</guid><dc:creator>mav21</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1923810.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1923810</wfw:commentRss><description>Hello all... I recently applied IIS 7 URL Rewriting to our website and it is working quite well.&lt;br /&gt;
&lt;br /&gt;
Somehow some users are however landing on our site with a rewritten URL with an asp-page and querystring attached to the URL. This effectively means the same variable is requested twice, causing an internal server error.&lt;br /&gt;
&lt;br /&gt;
Let me explain with an example:&lt;br /&gt;
http://www.example.com/item/202/some-title&lt;br /&gt;
would request&lt;br /&gt;
http://www.example.com/item.asp?ID=202&amp;amp;title=some-title&lt;br /&gt;
from the server, which works fine.&lt;br /&gt;
&lt;br /&gt;
But some users are landing at:&lt;br /&gt;
http://www.example.com/item/202/some-title/item.asp?ID=202&lt;br /&gt;
which leads to the server looking for&lt;br /&gt;
http://www.example.com/item.asp?ID=202&amp;amp;title=some-title&amp;amp;ID=202&lt;br /&gt;
&lt;br /&gt;
The ID-variable is queried twice, which results in a server error.&lt;br /&gt;
&lt;br /&gt;
I realise one of the priorities should be to find out how users are landing there, but I imagine there would also be a way to redirect/rewrite any queries to such pages to a 404 or - better - strip it of the &amp;#39;item.asp?ID=202&amp;#39; part.
&lt;br /&gt;&lt;br /&gt;
I have tried a number of rewriting rules, but unfortunately without succes. Any suggestions would be very welcome. Thank you...</description></item><item><title>Rewriting HTTP header to force WMV download</title><link>http://forums.iis.net/thread/1917721.aspx</link><pubDate>Mon, 21 Sep 2009 19:33:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1917721</guid><dc:creator>bateszi</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1917721.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1917721</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Is it possible to rewrite the HTTP header of a WMV file in order to force the browser to download (rather than stream) the video? I&amp;#39;ve been trying it for a while (with URL Rewrite 2.0) and had no luck, the rule I&amp;#39;ve constructed is as follows:&lt;/p&gt;&lt;p&gt;&amp;lt;rule name=&amp;quot;Rewrite wmv header&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;match url=&amp;quot;^media/([^/]+)/([^/]+)/([^/]+)/([^/]+).wmv&amp;quot; ignoreCase=&amp;quot;true&amp;quot; negate=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;serverVariables&amp;gt;&lt;br /&gt;&amp;lt;set name=&amp;quot;CONTENT_TYPE&amp;quot; value=&amp;quot;APPLICATION/OCTET-STREAM&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;set name=&amp;quot;HTTP_CONTENT_DESCRIPTION&amp;quot; value=&amp;quot;FILE TRANSFER&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/serverVariables&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;br /&gt;&lt;br /&gt;Is there anything wrong with the above? Ideally I&amp;#39;d need to rewrite the WMV&amp;#39;s filename as well, but I&amp;#39;m sure that if I can just rewrite this &lt;span style="font-style:italic;"&gt;Content-type&lt;/span&gt; header, the filename should follow the same process.&lt;/p&gt;&lt;p&gt;Thanks. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Rewritemap nightmare</title><link>http://forums.iis.net/thread/1917746.aspx</link><pubDate>Tue, 22 Sep 2009 02:53:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1917746</guid><dc:creator>ayyash</dc:creator><slash:comments>6</slash:comments><comments>http://forums.iis.net/thread/1917746.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1917746</wfw:commentRss><description>&lt;p&gt;hello, im trying to get the following scenario working but im out of tricks: user types: http://www.mydomain.com/somesubdirectory -&amp;gt; go to subdirectory http://www.mydomain.com/vanityurl =&amp;gt; vanity url indicated in rewritemap http://www.mydomain.com/vanityurl/ (not the trailing slash) =&amp;gt; vanity url indicated in rewritemap &lt;/p&gt;
&lt;p&gt;my problem lies in the trailing slash, if its there rewritemap sees nothing and returns nothing, if its not, vanity url works, but real folders go into an endless loop, because apparently iis adds a trailing slash to all folders found!!!!! its a NIGHTMARE&lt;/p&gt;</description></item><item><title>IIS rewrite module with standard IIS courtesy redirect</title><link>http://forums.iis.net/thread/1902256.aspx</link><pubDate>Wed, 29 Apr 2009 08:45:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1902256</guid><dc:creator>HeynderickM</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1902256.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1902256</wfw:commentRss><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I encounter the following problem when using the URL rewrite module.&lt;br /&gt;&lt;br /&gt;When I rewrite my root domain to a subfolder ex. (be.domain.com this gets rewritten to www.domain.com/secretfolder/) this works perfect.&lt;br /&gt;&lt;br /&gt;However when I try to navigate to be.domain.com/test which is a folder, IIS redirects me directly to www.domain.com/secretfolder/test/ which is a bad thing.&amp;nbsp; I don’t want people to see the /be between this URL.&amp;nbsp; For now I fixed this by adding a new redirect rule.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Setup:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Rewrite be.domain.com to www.domain.com/secretfolder .&lt;br /&gt;&lt;br /&gt;Let’s me explain this matter I a few subjects:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Navigate to URL WITH trailing /&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Steps:&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; Navigate to be.domain.com/test/&lt;/p&gt;&lt;p&gt;Actual result:&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; URL displayed in address bar = be.domain.com/test/&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Expected result:&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; URL displayed in address bar = be.domain.com/test/&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;Conclusion:&lt;/b&gt;&lt;/u&gt;&lt;/i&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; Everything works fine, no problems here.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Navigate to URL WITHOUT trailing /&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Steps:&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; Navigate to be.domain.com/test&lt;/p&gt;&lt;p&gt;Actual result:&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; URL displayed in address bar = be.domain.com/secretfolder/test/&lt;br /&gt;&lt;br /&gt;Expected result:&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; URL displayed in address bar = be.domain.com/test/&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;Conclusion:&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;The secret folder is shown in the address bar, this is something we don’t want.&amp;nbsp; I already found this is done by the IIS courtesy redirect.&amp;nbsp; For now I have fixed this by adding another redirect to prevent the /secretfolder/ to be shown in the URL’s.&amp;nbsp; However by doing this I’m getting 2 headers with a 301 redirect.&amp;nbsp; I was wondering if it is possible to do this with only one redirect. &lt;br /&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;&lt;br /&gt;Massimo Heynderick&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>