global header.php不在随机页面上显示某个图像[关闭]

I'm working on a website that was originally built using codeigniter. It's a mess on the back end and there's no identifiers to anything really. I've recently changed a banner (header.php) and edited the style to fit as required. I added a simple img source= and a href= into the header.php and it seems to be displaying fine on the homepage. However once I navigate away to other pages the img source isn't displaying whilst all my other changes are?

The a href link remains with the class but the image is displaying as broken.

I've checked all the locations etc and it's all pointing to the correct place?

Any ideas?

I understood that you have given relative path to your image directory. You have to prepend base_url in src tag as follows

<img src="<?php echo base_url('/path/to/image.jps');?>" alt="Image"/>