redirect - How to get the current parent directory in .htaccess? -
how current parent directory in htaccess? i'm working on redirecting page when error 404 found... here code...
errordocument 404 /sitewylog/www/404-redirect.php
but when directory changes like, /sitewylog/www/404-redirect.php turns /some-new-name/www/404-redirect.php because pulled copy different folder name (eg. using rapidsvn).. produces error says, 404.html not found.. because 404-redirect.php contains code...
<?php include_once '../config.php'; header('location: /'.root.'/www/404.html'); exit; ?>