I have a directory named "news" e.g "www.site.com/news".
In this is only one file, index.php.
Index.php just includes "../welcome.php" and it works fine, except the images in "welcome.php" use relative paths.
So when included from the subdirectory the path is:
"www.site.com/test/images/image.jpg"
when it should be:
"www.site.com/images/image.jpg"
Is there any way to change the path added to the images to "www.site.com"
without hardcoding every single image?
(there are too many images, in too many files🙁)