i have an url that passing value as mysitename.com/filename.php?id=1 i want this to be appear mysitename.com/test where test will be dynamic that is if id=3 it will be something else and vice versa i have used the code RewriteEngine On RewriteRule ^([a-zA-Z0-9_-]+)$ filename.php?id=$1 RewriteRule ^([a-zA-Z0-9_-]+)/$ filename.php?id=$1 i am getting now mysitename.com/filename.php?id=1 as mysitename.com/1 but i want to display that ids name from DB is there any way to do this i think just need to edit my scrip to something to achive this so that i can get help let me know, i am coder too, if you help me that will be great