Re: Need help in change of context root while redirecting url

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Eric.. As we do not have pre prod environment, wanted to check before trying it.

I will check and update.

Thanks & regards,
Sailaja

On Tue, May 16, 2017 at 10:09 PM, Eric Covener <covener@xxxxxxxxx> wrote:
On Tue, May 16, 2017 at 12:24 PM, Sailaja Gadireddy
<sailaja.gadireddy@xxxxxxxxx> 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
covener@xxxxxxxxx

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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux