(Apache) RedirectMatch regex to match all directories except those in my list
- by dotben
I need to 301 redirect all requests coming in for requests to http//server.com to be redirected to http//newserver.com unless the request is for an arbitary list of directories we are maintaining on the legacy server (eg server.com/foo or server.com/bar)
I'm having a hard time working out how best to set this up and the regexs.
EG, I need:
…