I don't really have the time to sit down now and find the exact how-to type stuff, but basically anything you put into an .htaccess file can also be applied to the global apache httpd.conf file. Htaccess really is just a per-instance extension of the conf file.
You should be able to set up the exact same redirect code somewhere in the virtualhosts configuration section of your main config file. Then it would be effective on every single domain on the server.
Of course, doing it that way, you'd have to redirect them somewhere off that server, or you'd get an infinite loop.
I'll see if I can find the exact stuff sometime tonight or tomorrow.
|