<p>Our ASP.NET 3.5 website running on IIS 6 has two teams that are adding content: </p>

<ul>
<li>Development team adding code. </li>
<li>Business team adding simple web pages. </li>
</ul>

<p>For sanity and organization, we would like for the business team to add their web pages to a sub-folder in the project:  </p>

<blockquote>
  <p>Root: for pages of development team </p>
  
  <p>Content: for pages of business team </p>
</blockquote>

<p><strong>But</strong> </p>

<p>We would like for users to be able to navigate to the business team content without having to append "Content" in their URLs, as described below:</p>

<blockquote>
  <p><strong>Root</strong>: Default.aspx  (<em>Available at: www.oursite.com/default.aspx</em>)</p>
  
  <p><strong>Content</strong>: Popcorn.aspx  (<em>Available at: www.oursite.com/popcorn.aspx</em>)</p>
</blockquote>

<p>Is there a way we can accomplish for making a config entry in an ISAPI rewrite tool for every one of these pages?</p>

[{'answer_id': 45808, 'author': 'Ben Scheirman', 'author_id': 3381, 'author_profile': 'https://Stackoverflow.com/users/3381', 'pm_score': 2, 'selected': False, 'text': '<p>Since the extensions will be ASPX, ASP.NET will pick up the request... you can write an HttpModule that checks for pages that yield a 404 and then check the subfolder also.</p>\n\n<p>If you know that all pages with a certain format will be coming from that folder, then you can just rewrite the URL in ASP.NET (either in Global.asax or an HttpModule).</p>\n'}, {'answer_id': 45926, 'author': 'Adam Cuzzort', 'author_id': 4760, 'author_profile': 'https://Stackoverflow.com/users/4760', 'pm_score': 2, 'selected': True, 'text': "<p>I don't have any way to test this right now, but I think you can use the -f flag on RewriteCond to check if a file exists, in either directory.</p>\n\n<pre><code>RewriteCond %{REQUEST_FILENAME} -!f\nRewriteCond Content/%{REQUEST_FILENAME} -f\nRewriteRule (.*) Content/(.*)\n</code></pre>\n\n<p>Something like that might do what you're after, too.</p>\n"}]
['https://Stackoverflow.com/questions/45796', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/308/']