title: How to redirect all sub-directory pages to parent directory?
body: <p>I want to redirect:</p>
  
  <p><strong>URL1:</strong> </p>
  
  <pre><code>http://www.example.com/folder/whatever-pagefolders-anything/
  </code></pre>
  
  <p>To:</p>
  
  <p><strong>URL2:</strong></p>
  
  <pre><code>http://www.example.com/folder/
  </code></pre>
  
  <p>So typically no matter how many folders come after the "folder" it will redirect to example dot com/folder/</p>
  
  <p>Some other examples to make it more clear</p>
  
  <p><strong>Example 2:</strong></p>
  
  <p><strong>URL1:</strong></p>
  
  <pre><code>example.com/folder/folder2/folder3/
  </code></pre>
  
  <p>To:</p>
  
  <p><strong>URL2:</strong></p>
  
  <pre><code>example.com/folder/
  </code></pre>
  
  <p><strong>Example 3:</strong></p>
  
  <p><strong>URL1:</strong></p>
  
  <pre><code>example.com/folder/page.html
  </code></pre>
  
  <p>To:</p>
  
  <p><strong>URL2:</strong></p>
  
  <pre><code>example.com/folder/
  </code></pre>
  
  <p><strong>Example 4:</strong></p>
  
  <p><strong>URL1:</strong></p>
  
  <pre><code>example.com/folder/*
  </code></pre>
  
  <p>To:</p>
  
  <p><strong>URL2:</strong></p>
  
  <pre><code>example.comcom/folder/
  </code></pre>