[PHP] URL Coding Help (/USERNAME)

JoshuaLuke

Posting Freak
Jan 29, 2012
529
51
Hello,

I'm currently making homes for my CMS and i'm unsure about how to make my URL without using a $_GET variable. I want the url to be like {url}/home/USERNAME but i can't use a $_GET in order to do that, is it possible to do this, if so, how?

Cheers
Josh
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
You mean links like this?
RewriteRule ^home/([^/]+)/id(|/)$ /home.php?qryId=$1
RewriteRule ^home/([^/]+)(|/)$ /home.php?qryName=$1
-------------------------------------------------------------------
 

Users who are viewing this thread

Top