Create a file ..
profile.php?user=admin
in profile.php..
$user = $_GET[user']
for my_sql_query .. For name = $user
fetch querys from ibwf_users
user shout counts, snaps, scraps etc..
Now try viewing : profile.php?user=admin
If it works fine..
Now go to .htaccess
and use following code..
RewriteEngine On
RewriteRule ^([^/]+).html profile.php?user=$1 [NC]
So
profile.php?user=admin becomes sitename.com/admin.html
Similarly u can even have admin.sitename.com
for that enable wild card...
Go to cpanel.. -> Subdomain options.. Create a new subdomain
using "*" (Star) .. * stands for wild card.
and edit htaccess 😉
Hope it helps