hey man thank u so much

it worked like a charm , im really grateful to u .
there is one more thing i would like to ask

i have also changed the profiles from
www.linkzdirect.com/username to uesrname.linkzdirect.com by wildcard dns and blah blah blah it works like a charm but i still hvent been able to figure out a 301 redirect for it as well.
here is the original code.:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .+ - [L]
RewriteRule ^([A-Za-z0-9_-]+)$ profile.php?ID=$1 [QSA,L]
its replaced to :
RewriteCond %{HTTP_HOST} ^([^w]{3}.*).linkzdirect.com$
RewriteRule ^$ /profile.php?ID=%1 [QSA,L]
RewriteCond %{HTTP_HOST} ^([^w]{3}.*).linkzdirect.com$
RewriteRule ^/(.+)$ /$1 [QSA,L]
so i would really really apprecite man if u can guide me in this as wel. plus i need to learn .htaccess redirect can u give me a good tutorial link to.
thanks again bro