Hello! I'm working on a profile page, I already have the first get variable redirect working so it goes from
mywebsite.com/u/?u=username to mywebsite.com/u/username, as an example. But I want to pass a second parameter as such: mywebsite.com/u/username/about for example. So I wrote (more like mashed a bunch of scavenged code together, not good with htaccess) this in my .htaccess:
RewriteBase /u
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ index.php?u=$1
RewriteRule ^(.*)/(.*)$ index.php?u=$1&mode=$2
When using the second get variable so when i go mywebsite.com/u/username/about it returns index.php. I didn't know where to post this so I put it in the php section since it has to do with get variables. Anyways thanks for any help!