httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: [users@httpd] mod_rewrite help
Date Sat, 14 Mar 2009 12:07:13 GMT
Andrea Visinoni wrote:
> Eric Covener ha scritto:
>> On Thu, Mar 12, 2009 at 6:02 PM, Andrea Visinoni
>> <> wrote:
>>> Hi there,
>>> i need to implement url rewrite on a website and i need to obtain 
>>> something
>>> like that:
>>> -> index.php?1=a
>>> -> index.php?1=a&2=b
>>> -> index.php?1=a&2=b&3=c
>> There is no real "cleaner" way than the example here:
> Well i assume that there is no way to have infinite subdirs 
> (/a/b/c/d/...) with a single RewriteRule, maybe the cleaner way is to 
> get all the subdirs as a single parameter and tokenize in PHP.
It is also quite unlikely that someone would have an infinite-length 
URL. For one thing, they'd run out of letters after 27 or so...
But maybe you should /really/ read the example at the link provided.
One thing it explains is that if the regexp runs out of things to match, 
the parameters will still be generated, but with an empty value.
That's something you can easily test in your script, no ?

index.php?1=a&2=b&3=c&4=&5=&6= ......

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message