How to create user profiles with PHP and MySQL -
I need some help on creating a user profile system I want to be like Facebook or where the user only after its address For example, www.mysite.com/username
. I have all the registers, logging scripts etc. all done, but how do I give profiles using the example URL above? "
You will need to create a mod rewrite that takes the first directory and it's in the form of $ _GET parameter
Try it:
RewriteEngine RewriteBase / RewriteCond% {REQUEST_FILENAME} -f [OR] RewriteCond% {REQUEST_FILENAME} -d Records Rules ^ (. * ) / $ Index.php? User = $ 1
It should rewrite anything after the '/' index.php? User = directory
Comments
Post a Comment