.htaccess - Linking from a subfolder back to the root folder index.html file -
i having trouble linking subfolder index file root folder index file.
i have logo in nav bar of example.com/blog have link example.com
i have tested various linking options logo image including
<a href="../index.html"> <a href="http://www.example.com"> <a href="../"> and none of them seem work. logo image continues link example.com/blog/index.html
the strange thing if right click on image , select open in new window/tab, load example.com fine.
i @ complete loss.
could related .htaccess file?
additional info
i added "home" text link nav bar using below syntax , works perfectly.
<a href="http://www.example.com">home</a> the image reason not link rootfolder index.html file using same syntax. keeps loading http://www.example.com/blog/index.html
try using javascript redirect
function home() { window.location.replace("http://example.com"); } <button onclick="home()">hi</button> replace http://example.com website.
Comments
Post a Comment