Robby Russell wrote:

On Sat, 2004-07-03 at 08:21, Dylan Reinhardt wrote:

Robby Russell wrote:

http://mydomain.com/level1/level2/level3/

RewriteRule ^(.*)/(.*)/(.*)/$
index.php?level1=$1&level2=$2&level3=$level3

I can get it to work at if I have all 3, but if I only go to:
http://mydomain.com/level1/  it doesn't work. How can I make this be
flexible? If it's only one // deep, then go to level1=$1 ///
level1=$1&level2=$2, etc...

Probably the easiest thing would be to stack several patterns corresponding to different numbers of "directory" levels, longest first. First pattern to match wins.




I'll give that a try.

Dunno if you're used to using stacked RewriteRules, but if you aren't, you'll probably need to use and/or know about the -L flag.


Just in case... :-)

Dylan

_______________________________________________
PDXLUG mailing list
[EMAIL PROTECTED]
http://pdxlug.org/mailman/listinfo/pdxlug

Reply via email to