Currently I have the following rules...
RewriteRule ^([^/]+)/([^/]*)(.htm)?$ index.php?filter=$1&page=$2 [L,QSA]
RewriteRule ^([^/]+)/$ index.php?filter=$1 [L,QSA]
Which basically catch anything in /dirname/page.htm
Now there exists the chance that the script will have to intercept a variable level of paths, such as /dirname/twodirname/threedirname/page.htm
Is there a way of doing this and handling the result in PHP with one rule rather than a mess of them in htaccess (and the multiple _GET variables generated)?