I am building a website that will use mod_rewrite to rewrite URL's to many different domain names. I am wondering how I can use PHP in my .htaccess file to define what these domains are. Any suggestions?
.htaccess does not use PHP And you cannot configure mod_rewrite for all domains from one .htaccess file (except that the outbound redirects can point to any other domain) .htaccess file for each domain will lie in the root folder for that domain on your server. (addon domains can be controlle by single htacess file, but then, the links would only point to www.YourPrimaryDomain.com/AddonDomainFolder/file.php)