Forum Moderators: phranque
"changed" to foo.com/?var1=t1&var2=t2&q=t3=a&foo=b...
My rule:
^([^/]*)(/([^/]*)(/(.*))?)?
or this version:
^([^/]*)(/([^/]*))?(/(.*))?
works fine, if I remove the last 2 sets of brackets, but then t3=a&foo=b... isnt working.. (of course, because I removed them)
With the last 2 sets of brackets, the server seems too loop, and I really dont understand why :(
My .htaccess file looks like this:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^([^/]*)(/([^/]*)(/(.*))?)? /index.php?area=$1&page=$3&q=$5
foo.com/t1/t2/t3=a&foo=b
Assuming that's a query string there, it's invalid syntax; a query string requires a '?', so something like:
foo.com/t1/t2/?t3=a&foo=b