httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Visinoni <and...@puntualmenteinritardo.com>
Subject Re: [users@httpd] mod_rewrite help
Date Sat, 14 Mar 2009 12:04:06 GMT
Eric Covener ha scritto:
> On Thu, Mar 12, 2009 at 6:02 PM, Andrea Visinoni
> <andrea@puntualmenteinritardo.com> wrote:
>> Hi there,
>> i need to implement url rewrite on a website and i need to obtain something
>> like that:
>>
>> http://site.com/a/ -> index.php?1=a
>> http://site.com/a/b/ -> index.php?1=a&2=b
>> http://site.com/a/b/c/ -> index.php?1=a&2=b&3=c
> 
> There is no real "cleaner" way than the example here:
> 
> http://wiki.apache.org/httpd/RewritePathInfo
> 
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.
Thank you for the great link.
Andrea

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message