Reputation: 79
Is there any equivalent to php's
$path = $_SERVER['DOCUMENT_ROOT'] . '/../directory/above/root/';
in htaccess? I want to place custom error scripts above webroot and tried something like this without success...
ErrorDocument 400 ../error/400.php
ErrorDocument 400 /{DOCUMENT_ROOT}/../error/400.php
Upvotes: 0
Views: 397
Reputation: 1
// Root path for file manager // use absolute path of directory i.e: '/var/www/folder' or $_SERVER['DOCUMENT_ROOT'].'/folder' $root_path = $_SERVER['DOCUMENT_ROOT'];
// Root url for links in file manager.Relative to $http_host. Variants: '', 'path/to/subfolder' // Will not working if $root_path will be outside of server document root $root_url =
Upvotes: 0