Hi, i am a little new to php and wondering how could i rewrite this url mysite.com/profiles.php?xid=1 to mysite.com/mynameofmyprofile i think this is possible with .htaccess with rewirte rule but how would i actualy do it ? thanks . ~Danny
I don't see how mysite.com/profiles.php?xid=1 could turn to mysite.com/mynameofmyprofile turn it to mysite.com/1/mynameofmyprofile would be easier. RewriteEngine On RewriteRule ^([0-9]+)/.+$ /profiles\.php?xid=$1 [L] Code (markup):