Am 29.06.2017 13:32 schrieb Mark Holmes:
This worked perfectly - thanks again Philipp - but now the goalposts
have moved slightly...


So what I need to do is

If a request comes in for www.old.com/audi/thesite/pages

I'd like to redirect to

www.new.com/audi/thesite/pages

 maintaining everything after the first /


But if a request comes in for www.old.com/somethingelse

I don't want to redirect, it should just end up on www.old.com/somethingelse

So basically, anything /audi gets redirected maintaining everything after /

Everything else doesn't get redirected.

I can feel some kind or Regex situation here...

Grateful for any suggestions.

just more acl - now on the path.
acl audimeh path_beg /audi
acl oldthings hdr(host) -i old.com
http-request redirect prefix https://new.com if oldthings audimeh

--
pb

Reply via email to