php - Accessing $_SERVER['DOCUMENT_ROOT'] value in .htaccess file -


The path I specified in $ _SERVER ['DOCUMENT_ROOT'] should be accessible in the .htaccess file. Is there any way to use it there?

I need to point to the file originally kept on the root and require the actual file system path and not the URL path. So instead of using a hard coded value, I want to be able to use a variable.

Thanks

$ _ server is a PHP variable, whereas .htaccess files are Apache Unfortunately, there is no way to access PHP in Apache's config files.

The solution I have seen in many projects is that an installation script has a custom one. Not quite ideal and little work, but this work is completed.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -