httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Macks, Aaron" <>
Subject Re: [users@httpd] Help with rewrite rules
Date Wed, 05 Aug 2015 15:48:23 GMT
Actually i think that will create a rewrite loop, since it’ll match “InService’ and replace
it with InService

I’d add this
RewriteCond %{REQUEST_URI}  !^/InService

above the same RewriteRule

On Aug 5, 2015, at 11:38 AM, , , <<>>

If this is only for the word inservice then you can do a basic rule
using the No Case flag in apache

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

Request you to help me with this.

Aparna Puram

To unsubscribe, e-mail:
For additional commands, e-mail:

Aaron Macks
Systems Architect

Harvard Business Publishing
300 North Beacon St.    |   Watertown, MA 02472
(617) 783-7461                |   Fax: (617) 783-7467<> |   Cell:(978) 317-3614

View raw message