Dear guys,
I have a code that I always use on hosts and it works but is not working now
The code is:
The file is functions.php
// setting up the web root and server root for
// this application
$thisFile = str_replace('\\', '/', __FILE__);
$docRoot = $_SERVER['DOCUMENT_ROOT'];
$webRoot = str_replace(array($docRoot, 'functions.php'), '', $thisFile);
$srvRoot = str_replace('functions.php', '', $thisFile);
define('WEB_ROOT', $webRoot);
define('SRV_ROOT', $srvRoot);
All the web files are in the root folder lifeforea
and the admin files are in the lifeforea folder ir lifeforeastafrica/admin
However, when I try to access www.lifeforeastafrica/admin to login into the admoin area, I get the folloeing error:
Not Found
The requested URL /mnt/local/admin/login.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Someone help on how I should set my doc and server roots please.....