Ahhhh!
OK, so I've been learning PHP for about 7 years now on and off, but never have I taken the time to look into URL rewriting. Until now I've not needed it, but you can guarantee the one thing you think you wont need, you need!
I have the following URL style:
www.sitename.com/profile.php?user=username
Of which I would like rewriting to:
www.sitename.com/username (Preferred)
OR
www.sitename.com/user/username
I also need it to be reversible, so if someone types in www.sitename.com/username it works.
Any ideas?
Previous attempt was setting up mod_rewrite rules in .htaccess, is this the best way?
If not, how?
Any help much appreciated!
Cheers!
Jack