How to rewrite url and get variable
<p>Actual url is <code>www.url.com/?01var</code>
How to rewrite that the above url looks like www.01var.url.com</p>

<p>With <code>$_SERVER['QUERY_STRING']</code> (modifying it) I can define php variable <code>01var</code>
If user types <code>www.01var.url.com</code> can I get the variables in the same way?</p>

<p>For example user types www.url/login.php?01var
Wtih $_SERVER['QUERY_STRING'] i get 01var</p>
