...

View Full Version : mod_rewrite



slappyjaw
08-17-2009, 03:05 AM
Ok so im wicked confused. Can some one please explain how to make it so that when a user types:

www.myurl.com/THEIRUSERNAME it will show
www.myurl.com/profile.php?id=THEIRUSERNAME

thank you for all your help in advanced.:thumbsup:

Zangeel
08-17-2009, 03:08 AM
Teeheeeheee



RewriteEngine on
RewriteRule ^([a-z0-9_]+)/*$ profile.php?id=$1 [QSA,NC]


Put that in a file called .htaccess (if it's not there just create it) and put it in your root

slappyjaw
08-17-2009, 03:16 AM
ok, this is very helpful. hahah i do php but the modrewrite confuses me. thanks a lot for your help.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum