-1
Hello! I’m a beginner in php, and I’m having trouble using
the header(Location function).
Whenever I redirect a page, the path is from the directory of the current page!
Ex: Home/Forum/Images/ if I have a page inside the folder /Forum/ and use the header("Location: Localhost/Home/Pagina.php")
to access a page that is in the directory /Home/, the link is "Localhost/Forum/Home/Pagina.php", and logically it does not find, is there any way I always set the search by directory from the root directory of the site? so that the searches are always made from /Home/ and not the page that has the Header()? function and the same doubt applies to the form action, when I create php forms!
Thank you just now!
.htaccess
<files phpsysinfo.ini>
order deny,allow
deny from all
</files>