title: htaccess: change address bar to remove prohibit parameter
body: <p>I try to make subdomains with htaccess.
  it's working fine so far. I'm using the subdomain as a Get-Parameter within another script.</p>
  
  <p>However, if someone just uses this parameter, the subdomain-parameter is overwritten.</p>
  
  <p>user1.domain.com/?site=user2 will display user2.domain.com.
  (intern it is www.domain.com/index.php?site=user2)</p>
  
  <p>So, I tried to make the site redirect from, ?site=user2 to user2.domain, but everytime I use the [R]-modifier the url is changed so you can see my local folders.<br>
  RewriteBase /path/to/basefolder didn't help there either.</p>
  
  <p>Does anybody of you know how to change the addressbar, so that it is actually not /?site=user1 or /index.php?site=user1, but user1.domain.com ?<br>
  Or maybe what I did wrong?^^</p>
  
  <p>Here is my current Code:</p>
  
  <pre><code>RewriteEngine on
  Options +FollowSymlinks
  
  RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /([^\?]+)\?(.*?)&amp;?site=([^&amp;\ ]+)([^\ ]*)
  RewriteRule ^ http://%4.domain.com/%2?%3%5 [L,R]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  
  RewriteCond %{REQUEST_URI} !index\.php [NC]
  RewriteCond %{REQUEST_URI} !\.css$ [NC]
  RewriteCond %{REQUEST_URI} !\.png$ [NC] 
  RewriteRule \.php index.php
  
  RewriteCond %{HTTP_HOST} ^(.*).domain.com$
  RewriteCond %{REQUEST_URI} !^/.*/
  RewriteRule (.*) index.php?site=%1 [NC,QSA,L]
  
  &lt;Files .htaccess&gt;
  order allow,deny
  deny from all
  &lt;/Files&gt;
  </code></pre>