title: URL Mapping based on Resource resolver in AEM
body: <p>We have the following website structure:</p>
  
  <pre><code>content
      mysite
           en
            home
               testlevel1page
                 testlevel2page
  </code></pre>
  
  <p>Now the requirement is to map: </p>
  
  <ul>
  <li><a href="http://www.mysite.com/" rel="nofollow">http://www.mysite.com/</a> --> /content/mysite/en/home.html</li>
  <li><a href="http://www.mysite.com/testlevel1page/" rel="nofollow">http://www.mysite.com/testlevel1page/</a> --> /content/mysite/en/home/testlevel1page.html</li>
  <li><a href="http://www.mysite.com/testlevel1page/testlevel2page/" rel="nofollow">http://www.mysite.com/testlevel1page/testlevel2page/</a> --> /content/mysite/en/home/testlevel1page/testlevel2page.html</li>
  </ul>
  
  <p>How can we achieve this through resource resolver?</p>