Thanks Neven, I will try that and also the 'Alias'
http://httpd.apache.org/docs/current/mod/mod_alias.html






On Friday, November 22, 2013 8:21 AM, Neven Cvetkovic 
<neven.cvetko...@gmail.com> wrote:
 
On Fri, Nov 22, 2013 at 7:56 AM, srinivas yelamanchili <y_sr...@yahoo.com>wrote:


> So today Apache requests for /App and /AppXyz go to Tomcat /App and
> /AppXyz respectively.
>
> Now I want to change this redirection so all Apache requests of type /App*
> go to Tomcat /App only (and not AppXyz)
> How to accomplish this?
>

Sri, this is probably question for Apache configuration. You can achieve
this with "mod_rewrite", see the documentation for details:
http://httpd.apache.org/docs/current/mod/mod_rewrite.html

Here's an example:

RewriteEngine on
RewriteRule ^/AppXyz(.*) /App$1 [R,L]

I have not tested this, but should work something like this:
http://yourhost/AppXyz/somepath/here ---redirects-->
http://yourhost/App/somepath/here

Hope that helps!

Reply via email to