Re: Looking for RewriteRule regex aid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 for example you have sources url like this:
/12318/a.jpg

do you need:
/1/2/3/18/a.jpg

or:
/12/3/1/8/a.jpg

or:
/1/2/3/1/8/a.jpg

or:
/12/3/18/a.jpg ??

number between 1 .. 18, it's almost impossible to write a regex to do that.

On Thu, Feb 28, 2008 at 2:23 PM, wi <icebattle@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>  For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux