Hi everyone, I am using a kind of .htaccess redirection to make my urls more friendly for the user, the thing is it is a community site, and so I changed /userinfo.php?user=username to /username
Here is the code I used to achieve this:
Now the problem is that when I pass variables like: /username?var1=whatever&var2=whatever it doesnt work, they dont seem to get redirected!
I need someone that understands better than me
that .htaccess code to rewrite it so that it will allow those variables!
Thanks a lot!
Here is the code I used to achieve this:
| Code: |
| RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^.*$ - [S=44] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [S=44] RewriteRule ^(.*)$ /userinfo.php?user=$1 |
Now the problem is that when I pass variables like: /username?var1=whatever&var2=whatever it doesnt work, they dont seem to get redirected!
I need someone that understands better than me
Thanks a lot!
