Perfect, does exactly what I need. Thanks again Philipp. -----Original Message----- From: Philipp Buehler [mailto:[email protected]] Sent: 29 June 2017 12:50 To: Mark Holmes Cc: '[email protected]' Subject: RE: Rewriting/redirecting part of URL
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 This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.

