title: New to .htaccess and RewriteRule
body: <p>I'm making a site where users can create subdomains with files, folders etc.
  these sites go into a folder called websites so it will be </p>
  
  <pre><code>site.com/websites/subdomain.site.com
  </code></pre>
  
  <p>I only need to get <code>{REQUEST_URI}</code> at the end of the <code>RewriteRule</code> so that a user can go to
  example, <code>subdomain.site.com/images/etc/img.jpg</code> and still their <em>subdomain</em> will be shown like <code>subdomain.site.com/images/etc/img.jpg</code> but the content will actually be on <code>site.com/websites/subdomain.site.com/images/etc/img.jpg</code></p>
  
  <p>Sorry for creating multiple questions, the docs is hard for me i'm totally new to this but im trying... please help with this :)</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /
  RewriteCond %{REQUEST_URI} !^/websites/
  RewriteCond %{HTTP_HOST} (.*)$ [NC]
  RewriteRule ^(.*)$ /websites/%1/ [L]
  ErrorDocument 404 /
  </code></pre>