Woops you guys are right thanks for catching that loop.
Another option if you can't use RewriteConds for some reason is below
is using the skip flag:
http://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_s
RewriteRule ^/InService$ - [S=1]
RewriteRule ^/inservice$ /InService [R=301,L,NC]
On We
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, , ,
mailto:us.shadow...@gmail.com>> wrote:
If this is only for the word
On Wed, Aug 5, 2015 at 11:38 AM, , , wrote:
> RewriteRule ^/inservice$ /InService [R=301,L,NC]
Seems like it would loop with NC.
--
Eric Covener
cove...@gmail.com
-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
F
> Date: Wednesday, August 05, 2015 20:55:49 +0530
> From: aparna Puram
>
> 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 t
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 t
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.