On Tue, May 16, 2017 at 12:24 PM, Sailaja Gadireddy
<[email protected]> wrote:
> Hello Team,
>
> I have a requirement to change the context root in the url when redirecting.
>
> For example: If user hits the url https://www.xyz.com/abc/def
> It should redirect to https://www.xyz.com/ghi/jkl.
>
> from url: https://www.xyz.com/abc/def --> https://www.xyz.com/ghi/jkl
>
> Please help me if RedirectMatch will work in this case.
>
> RedirectMatch /abc/def /ghi/jkl

Try it and see?  Apache doesn't care that you consider /abc and /ghi
context roots. You are free to pick any URL to redirect to.


-- 
Eric Covener
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to