Mod_Rewrite / Regex to PHP URL



I am new to using mod_rewrite and am trying to rewrite a URL to pass values to my script so that:

http://www.myclient.com/everything/animals/mammals/cats

is transformed into

http://www.myclient.com/index.php?nav[0]=everything&nav[1]=animals&nav[2]=mammals@nav[3]=cats

Specifically, I am looking for an n-ary solution to this problem. I know how to do it for a discrete number, but how do I do this transformation when the number of variables to go into the nav array is unknown, and how do I generate the index number? Can any experience mod_rewrite gurus point me in the right direction. I'm sure this is a common design pattern.

Thanks.
.



Relevant Pages

  • Re: Writing to task log file
    ... You cannot use the log file from within a transformation. ... It is not available in transformation or workflow scripts. ... >> One option for logging inside a transformation script is to use a lookup ...
    (microsoft.public.sqlserver.dts)
  • Re: DTS Transformation Error
    ... script that the transformation should also copy the Source Table structure ... ' Visual Basic Transformation Script ... ' Copy each source column to the destination column ... programming though I'm reasonably familiar with the DTS UI. ...
    (microsoft.public.sqlserver.dts)
  • Re: SSIS & Script Transformation (debug vs normal)
    ... Can you give more details about what the "transformation script" is ... The package is pretty simple. ... but not when ran by sql agent. ...
    (microsoft.public.sqlserver.dts)
  • Re: DTS - aus Space wird Null
    ... Ich habe das Package mit dem "DTS Import/Export Wizard" ... Script generiert wird. ... Welche genau machen könnte, dass da die Transformation Leere Felder in NULL Felder umwandelt, weiss ich nicht. ...
    (microsoft.public.de.sqlserver)
  • Re: Package executes on one machine but not another
    ... I've tracked the error message down to the following. ... As part of the transformation that's failing I assign the Global ... Dictionary object to a local variable i.e. one just dim'd in the ... transformation script. ...
    (microsoft.public.sqlserver.dts)