RedirectMatch ^/basedirectory/(?!exceptiondirectory1|exceptiondirectory2)(.*)$ http://server2/basedirectory/$1$2