Msg#: 4378595 posted 9:57 pm on Oct 24, 2011 (gmt 0)
Hi, so I edited the rules, and the first rule on it's own lets me get the two folder variables correctly using:
RewriteRule ^([^/]+)/([^/]+)$ index.php?var1=$1&var2=$2 [L] ...gets abc, xyz for the two folders
rule that handles only 1 folder gets index.php as the first variables instead of abc on it's own, and when added to the .htaccess file as a second rule, makes the 2 folders rule retrieve index.php for the first variable also
Msg#: 4378595 posted 3:44 am on Oct 25, 2011 (gmt 0)
Y'know, I kinda suspect this is a php problem rather than an htaccess one. You might try first creating some query strings with literal text, like "foo&bar&widget", and feed it into your php code to see if it's returning what it's supposed to. Otherwise you're potentially trying to juggle two problems at once. PHP is less dangerous than htaccess, so get that fine-tuned first.
Msg#: 4378595 posted 6:58 am on Oct 25, 2011 (gmt 0)
Your non-www to www rule is missing escaping of literal periods. It also doesn't redirect www requests with appended port number. See recent threads for better code. This particular sub-topic comes up almost every day.
I would have all the rules in one .htaccess file in the root so that you can control the order they are parsed. Make sure you are not using Redirect or RedirectMatch anywhere within the site as that will likely have unintended consequences.