title: How to redirect Sub directory to Parent directory in mod-rewrite
body: <p>This's my sub domain that I'm working now.</p>
  
  <pre><code>project.mywebsite.com/{shopname}
  </code></pre>
  
  <p>But there's a URL Segment parameter on URL, By <strong><em>shopname</em></strong> is URL Segment parameter <em>isn't  existence directory.</em> It use to be a parameter and send to Core programs to acknowledge what database use.</p>
  
  <p>I have a another domain that point to</p>
  
  <pre><code>project.mywebsite.com/{shopname}/domains/sitename/index.html
  </code></pre>
  
  <p>And I'd like to redirect this URL that store in Sub directory to Parent URL <em>(project.mywebsite.com/{shopname})</em> together with URL segment parameter.</p>
  
  <p>How can I write <strong>mod-rewrite</strong> in .htaccess.</p>