mercredi 29 avril 2015

Linking from a subfolder back to the root folder index.html file

I am having trouble linking from a subfolder index file back to my root folder index file.

I have a logo in the nav bar of example.com/blog that I would like to have link back to example.com

I have tested various linking options for the logo image including

<a href="../index.html">
<a href="http://www.example.com">
<a href="../">

And none of them seem to work. The logo image continues to link to http://ift.tt/1GFDWSS

The strange thing is that if I right click on the image and then select open in a new window/tab, then it will load example.com just fine.

I am at a complete loss.

Could this be something related to my .htaccess file?

Additional Info

I added a "Home" text link to the nav bar using the below syntax and it works perfectly.

<a href="http://www.example.com">Home</a>

The image for some reason will not link back to the rootfolder index.html file using the same syntax. It keeps loading http://ift.tt/1JTc0IO

Aucun commentaire:

Enregistrer un commentaire