I'm trying to auto include a global.php file using htaccess. Right now I have
php_value auto_prepend_file "/local/directory/global.php"
which works perfect. The problem is, I run this site both on a local server for development, and a remote web server for the live site. So obviously the /local/directory/ path is going to be variable based on whether I'm on mysite.com or mysite.local.
Is there a way to say if url contains mysite.local, include this file; otherwise include this file, inside the htaccess?