hello i wanted to create a format for users url, for example for the user ninja123, he would get a profile link of example.com/ninja123, im using php mysql on apache. this is the normal link!
viewprofile.php?userid=2
how could i appraoch this problem? and im a bad .htaccesss newbie :)) thanks
Instead of doing
$_GET['userid']and looking for ID… switch it by looking for name so it’s like:viewprofile.php?userid=Ninja123Try this Mod Rewrite generator: http://www.generateit.net/mod-rewrite/