title: HTACCESS: How to URL rewrite a sub-subdomain?
body: <p>I have the subdomain <code>apps.domain.com</code> pointing to <code>domain.com/apps</code></p>
  
  <p>I would like to URL rewrite <code>appName.apps.domain.com</code>, where <code>appName</code> is the variable pointing to <code>domain.com/apps/appName</code></p>
  
  <ul>
  <li><strong>I'm looking for an internal forward (no change in the browser's URL)</strong></li>
  </ul>
  
  <p>What should I have in my <code>.htaccess</code> file and where should I save it? Within <code>/apps/</code> folder? Or within the <code>root</code> folder?</p>
  
  <p>Lastly, if it is not possible with an <code>.htaccess</code> file, how can I do this? I'm using a Linux godaddy server as host.</p>
  
  <hr>
  
  <p>**** <strong>Question updated 07/08/2018; added more details</strong> ****</p>
  
  <ul>
  <li><strong>I am using GoDaddy SHARED hosting</strong></li>
  <li>It is currently hosting multiple domains</li>
  <li>Thus, the directory structure is <code>public_html/domain.com/</code>, where <code>/domain.com/</code> is the name of the hosted domain name(s)</li>
  <li>The sub-subdomain is exclusive to 1 specific domain</li>
  </ul>
  
  <p><strong>Example:</strong></p>
  
  <ul>
  <li>If the domain name is <code>domain.com</code></li>
  <li>There's multiple names, but to give an example. if the name of the app is <code>awesome</code></li>
  <li>If the uri is: <code>awesome.apps.domain.com</code> will point to...<code>public_html/domain.com/apps/awesome/</code></li>
  <li>If the uri is: <code>ubertz.apps.domain.com</code> will point to...<code>public_html/domain.com/apps/ubertz/</code></li>
  <li>And so on...</li>
  </ul>