Re: Help with rewrite rules

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

 



If this is only for the word inservice then you can do a basic rule
using the No Case flag in apache
http://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_nc

RewriteRule ^/inservice$ /InService [R=301,L,NC]


The user can enter any combination of upper or lower and the rule will
still fire as the NC flag makes the rule function for any case.

On Wed, Aug 5, 2015 at 10:25 AM, aparna Puram <aparnapuram@xxxxxxxxx> wrote:
> Hello All,
>
> I have specific requirement for a rewirte rule.
>
>
> http://localhost/inservice has to be rewrited to http://localhost/InSerivce.
>
> Only the first and 3rd letter has to be caps..and rest all have to be lower
> case. Even if user gives Inservice, it will still have to rewite it to
> InService.
>
> Request you to help me with this.
>
> --
> Regards,
> Aparna Puram
> +919449473709

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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