Hi all, I have been building a site and decided that I want to move important files to outside of document root. So I need to redirect from htdocs/index.php to test_folder outside of root. How can one achieve this?
I have tried the following
redirect ('location:'.$_SERVER['HTTP_HOST']. '/../test_folder/');
but it redirects to htdocs instead. How can I visit the site in htdocs, but redirect script to outside of root folder.