我如何在.htaccess文件引用$ _ SERVER ['DOCUMENT_ROOT']? [英] how can i reference $_SERVER['DOCUMENT_ROOT'] in a .htaccess file?
本文介绍了我如何在.htaccess文件引用$ _ SERVER ['DOCUMENT_ROOT']?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么能引用文档根从一个htaccess文件中?
How can i reference the document root from within an htaccess file?
例如:
我目前有
php_value auto_prepend_file C:/wamp/www/hf_latest_desktop/prepend.php
但我想
php_value auto_prepend_file **AUTO_DOC_ROOT**prepend.php
其中'** ** AUTO_DOC_ROOT根路径
where '**AUTO_DOC_ROOT**' the root path
推荐答案
您不能。 Apache配置文件不支持此功能。
You cannot. Apache configuration files do not support this.
这篇关于我如何在.htaccess文件引用$ _ SERVER ['DOCUMENT_ROOT']?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文