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; ?> 


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)