How are you?
I'm doing the user profile and there are 3 tabs, that is, three areas by which users can browse. For the profile, I rewrote the following in .htaccess:
RewriteRule ^profile/([0-9]+)/([a-z0-9-]+)/?$ profile.php?id=$1&name=$2 [NC]
This is not the problem, the problem is that I want to pass GET variables in the normal way too, as in the tabs example, getting something awesome URL:
profile/245/user-name?tab=about
But it does not read the variable when I put it to test:
echo $_GET['tab'];
Returns the following error:
Notice: Undefined index: tab in C:...\profile.php on line 14
NOTE: In the pages I rewrite that DO NOT have VARIABLE, it reads normally! I could even include this variable in the .htaccess that way, but suppose you have several of these for little things, type? Edit = 1 ...