Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess htaccess中的变量_.htaccess - Fatal编程技术网

.htaccess htaccess中的变量

.htaccess htaccess中的变量,.htaccess,.htaccess,如何在.htaccess中设置某些变量,.htaccess的这部分: # Prepend the file php_value auto_prepend_file "/home/admin/web/project/framework/host/redirect.php" php_value auto_prepend_file "/home/admin/web/project/framework/server.php" 我想: # Example variable MY_PATH is = /h

如何在.htaccess中设置某些变量,.htaccess的这部分:

# Prepend the file
php_value auto_prepend_file "/home/admin/web/project/framework/host/redirect.php"
php_value auto_prepend_file "/home/admin/web/project/framework/server.php"
我想:

# Example variable MY_PATH is = /home/admin/web/project/framework/
# and i use that variable, example
php_value auto_prepend_file "{MY_PATH}host/redirect.php"
php_value auto_prepend_file "{MY_PATH}server.php"

怎么做?

Aziz Alle Basyir你有没有收到什么answer@KiranMuralee,不…,我想,我们不能:)这看起来像是…@reinierpost的复制品,是的,这个老问题,不在乎这个老代码LOL