点击用户John Smith的位置user_id 1它应该转到网址www.example.com/John-Smith而不是profile.php?uid = 1
当你在user_id 2中点击用户John Smith时,它应该转到网址www.example.com/John-Smith-2
profile.php?UID = 2
当你在user_id 3中点击用户Kia Dull时,它应该转到网址www.example.com/Kia-Dull
profile.php?UID = 3
Table Users
User_id First_name last_name
1 John Smith
2 John Smith
3 Kia Dull
我如何格式化.Htaccess文件和php / sql.
单击用户配置文件时,我只需将其引导至此处即可.
RewriteRule ^(.*)$profile.php?uid=$1 [L]