I am building an application for my client and I am not using any frameworks . Question came up when building viewing user profile
My client wants to see the user profile URL like
mywebsite.com/Johnd – should give Johnd profile
mywebsite.com/KJohns – should give KJohns profile
I have implemented URL mapping like http://mywebsite.com/viewprofile.php?id=Johnd . But I am not sure how to map viewprofile.php?id=Johnd to just ‘Johnd’ .
Could some body please advise ?
mod_rewrite might be what you’re looking for (if you’re running apache at least).
Have a look at http://www.workingwith.me.uk/articles/scripting/mod_rewrite for a brief intro/tutorial to see if that’s the type of thing you need.