title: How do I combine CatchAll and EndsWith in an MVC route?
body: <p>The following route will match any folder structure below BasePath: </p>
  
  <pre><code>http://BasePath/{*SomeFolders}/ 
  </code></pre>
  
  <p>How do I create another route which will match any zip file below the same BasePath structure?</p>
  
  <p>I tried this...</p>
  
  <pre><code>http://BasePath/{*SomeFolders}/{ZipFile}
  </code></pre>
  
  <p>... but it errors with </p>
  
  <p><em>A path segment that contains more than one section, such as a literal section or a parameter, cannot contain a catch-all parameter.
  Parameter name: routeUrl</em></p>
  
  <p><strong>How should I approach this?</strong></p>
  
  <p>*<strong><em>Update</em>*</strong></p>
  
  <p>The original requirements are in fact flawed.
  {ZipFile} will match the final section regardless of what it contains. (File or Folder)</p>
  
  <p>In reality I believe the route pattern I'm looking to match should be:</p>
  
  <pre><code>http://BasePath/{*SomeFolders}/{ZipFile}.zip
  </code></pre>