1
私はを持っています。php_value auto_prepend_file私の絶対パスで使用する私のhtaccessに...これは私のlocalhost上ですが、私はWebサーバにアップロードするときに別の絶対パスが必要です。 ..htaccess simulate rewritecond IF..ELSEに対してIPアドレス
#php_value auto_prepend_file "/path/to/web/server/auto_prepend.php"
php_value auto_prepend_file "/path/to/local/server/auto_prepend.php"
その後、私はあなたが以下のような何かを行うことができますapacheの2.4で
if (ipaddress == serverip)
php_value auto_prepend_file "/path/to/web/server/auto_prepend.php"
else
php_value auto_prepend_file "/path/to/local/server/auto_prepend.php"
あなたはどのバージョンのApacheを使用していますか? – starkeen
Apacheのバージョンが2.4 – FireFoxII