httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard <lists-apa...@listmail.innovate.net>
Subject Re: [users@httpd] Help with rewrite rules
Date Wed, 05 Aug 2015 15:43:32 GMT


> Date: Wednesday, August 05, 2015 20:55:49 +0530
> From: aparna Puram <aparnapuram@gmail.com>
>
> 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.

You may want to look at the redirect and redirectmatch directives:

  <http://httpd.apache.org/docs/2.4/rewrite/avoid.html>

  <http://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirect>

as they are better for the simple redirection that you are,
seemingly, asking for.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message