Hi,

On Thu, Sep 20, 2012 at 04:59:14PM -0700, Aaron Golub wrote:
> Hi,
> How do I set up a redirect to maintain?
> I set this up:
>  acl red_xxx hdr_end(host) -i xxx.olddomain.com
>    redirect location http://xxx.newdomain.com/ code 301 if red_xxx
> 
> So if I go to http://xxx.olddomain.com, it loads up http://xxx.newdomain.com
> 
> But if I go to http://xxx.olddomain.com/loginpage, it still loads up
> http://xxx.newdomain.com, dropping everything after the host.
> How do I set it to maintain URI?

Use "redirect prefix" instead of "redirect location" for this. For example :

     redirect prefix http://xxx.newdomain.com/ code 301 if red_xxx

Regards,
Willy


Reply via email to