I have a database that stores the link. This value "link" is later read by my script and a user can click on a link to go to that link.
The links work with no issue when the user is on any page that is saved/hosted in the root directory /myroot/
But when a user clicks on the link while on a page the is saved/hosted on a different path saved on (ie. /myroot/news/feed.php) the link does not work.. "it seems to me that the script is not ale to tell where it is currently located so it does not know where to take you)
I tried to provide the root path of the site (ie. /myroot/{the link} but that did not work either.
How can I fix the URL so that the script knows where is the true location of the file?
thanks