Conditional PHP Version in .htaccess
问题 On my local testing server I'm using PHP 5.4. On the live host, however, I'm currently limited to PHP 5.3 and it must be specified in .htaccess (otherwise it defaults to 5.2). So I can add: # Use PHP 5.3 Action application/x-hg-php53 /cgi-sys/php53 AddHandler application/x-hg-php53 .php which works great on the live host but breaks the local testing server. Is it possible to use something like mod_rewrite to conditionally specify a PHP version based on the domain? Or is there a better way?