The task is to make a redirect from one domain to another. With the exception of the / old / directory
The redirect itself is easy to make, but I can not understand how to make an exception for the directory with a redirect.
UPD
A small clarification. From the old site should be redirected to the new site, regardless of the address.
I will explain. There are two addresses: example.com/?p1 example.com/?p2
It is necessary that from all pages be redirected to newexample.com
With the exception of the old folder