title: .htaccess subdomain rewrite url
body: <p>I have a system that uses wildcard for subdomains. But, I couldn't do the .htacess part. I want to do something like this;</p>
  
  <pre><code>The url : http://something.example.com/
  </code></pre>
  
  <p>I can get the "something" part, but the main issue is the post url. I want to request this url:</p>
  
  <pre><code>The url : http://something.example.com/homepage
  </code></pre>
  
  <p>And get the "homepage" part, setting parameter to this url:</p>
  
  <pre><code>The url : http://example.com/company/index.php?username=%1&amp;page=$1
  </code></pre>
  
  <p>My .htaccess file:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^(.*)\.example\.com
  RewriteRule ^/?$ /company/index.php?username=%1 [L]
  </code></pre>
  
  <p>Actually, whole system is going to work under /company folder. What strategy should i follow ?</p>