It it possible to have multiple ReWrite rules that all do the same Action, for an IIS7.5 webserver?
        Posted  
        
            by 
                Pure.Krome
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Pure.Krome
        
        
        
        Published on 2012-12-04T01:20:12Z
        Indexed on 
            2012/12/04
            5:06 UTC
        
        
        Read the original article
        Hit count: 411
        
I've got rewrite module working great for my IIS7.5 site.
Now, I wish to add a number of urls that all goto an HTTP 410-Gone status.
Eg.
<rule name="Old Site = image1" patternSyntax="ExactMatch" stopProcessing="true">
  <match url="image/loading_large.gif"/>
  <match url="image/aaa.gif"/>
  <match url="image/bbb.gif"/>
  <match url="image/ccc.gif"/>
  <action type="CustomResponse" statusCode="410"
            statusReason="Gone"
            statusDescription="The requested resource is no longer available" />
</rule>
but that's invalid - the website doesn't start saying there's a rewrite config error.
Is there another way I can do this? I don't particularly want define a single URL and ACTION for each url.
© Server Fault or respective owner