1
我有一個php_value auto_prepend_file在我使用絕對路徑的htaccess中......這在我的本地主機上,但是當我在web服務器上傳時,我需要不同的絕對路徑。 ..htaccess模擬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"
然後,我需要這樣的東西
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