Okay, so, I have a configuration.php
, and in there I have this:
$baseURL = 'http://www.website.com';
(just hiding my site)
On every page I call the configuration.php
, and it doesn't matter what directory or page I'm on (yes I'm setting the configuration.php
to the correct directory) but I try to make a image link like this:
<a href="<?php echo $baseURL; ?>"><img src="<?php echo $baseURL; ?>/images/logo.png"></a>
So that should, when clicked, take me to http://www.website.com
. Nope, it takes me to the same page. It's like its overwriting itself... I have nothing overwriting it in my code, it just like sets itself to the current page instead of just http://www.website.com