httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Allen <s...@ardishealth.com>
Subject Re: [users@httpd] Looking for RewriteRule regex aid
Date Thu, 28 Feb 2008 09:29:08 GMT
As a rewrite rule that could get very hairy.

If you are running a server where you use something like mod_perl or  
mod_python
i would set up a handler and do in said language, be MUCH easier.

On Feb 28, 2008, at 1:23 AM, wi wrote:

> Hi all
>
> I have a need to create a RewriteRule that will take something like
>
> /clubhouse/1234567/mediafile.jpg
>
> and turn it into
>
> /clubhouse/1/2/3/4/5/6/7/mediafile.jpg
>
> It seems like a relatively simple thing, but the number of digits in
> the source URI could be anything between 1 and 18, so the regex starts
> getting a bit hairy.
>
> Before I get too desperate, perhaps someone with potent regex chops
> would like to take a shot at it!
>
> cheers
> wayne
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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