In Apache, how do i redirect all non-existing directories for one domain (E.g. http://example.com/*.*) to another (e.g. http://example2.com/*.*)? I don't want the redirect to occur if the directory exists on the first server (http://example.com/). Just for non-existing directories.
http://example.com/directoryA <--- Exists on the server, so it should NOT redirect.
Is this even possible? The trouble is that i need the redirect to be a wildcard rather than having to define all the possible redirects.