mod_rewrite - is it possible?

From: Piotr (
Date: 11/15/04

Date: Mon, 15 Nov 2004 13:08:26 +0100

I have domain:
Under this address tere is an template site for many users. Personal site
is identified by userid.

I want to do short subdomain for all users like this:
but this short address should be call main domain (with masking long
address): -->

I have access only for .htaccess file (no httpd.conf) - is it possible to
do it by mod_rewrite? What can it be done?