Re: Re: Mod rewrite help

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

 



On Fri, May 8, 2009 at 8:37 AM, Justin Pasher
<justinp@xxxxxxxxxxxxxxxxxxx> wrote:
> Brent Clark wrote:
>>
>> Hiya
>>
>> Sorry to give and example, I have inherited this machine, and I have this
>> in the conf file
>>
>>       Alias "/dms-bookings/"       "/bookingsdata/bookings_data/bookings/"
>>       Alias "/dms-bookings-new/"   "/bookingsdata/bookings_data/bookings/"
>>       Alias "/dms-bookings_10000/"
>> "/bookingsdata/bookings_data/bookings_10000/"
>>       Alias "/dms-bookings_20000/"
>> "/bookingsdata/bookings_data/bookings_20000/"
>>
>>       snippet
>>
>>       Alias "/dms-bookings_100000/"
>> "/bookingsdata/bookings_data/bookings_100000/"
>
> Something like this should get you there (untested).
>
> RewriteRule ^/dms-bookings_([0-9]+)/(.*)
> /bookingsdata/bookings_data/bookings_$1/$2
>
> You'll have to leave the first two Alias definitions in there, since their
> format is different.
>
> --
> Justin Pasher

have you considered using symlinks to solve this problem?

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