Skip to main content
LIZZIE
Inspiring
April 18, 2019
Question

Links that are being called through ssi are not working on my website?

  • April 18, 2019
  • 2 replies
  • 412 views

I used to be able to do this all of the time, but I'm having a serious block right now. I guess.

I have a basic .html webpage. I'm using ssi to call upon the header, footer, and navigation pane. My .htaccess file is parsing the .html files as .shtml.

None of the links in my navigation pane are working for some reason.

I checked the code, and that is where the block is coming in. I'm staring at this, and something is wrong with  it, but I can't figure it out.

<li class="dropdown">

    <a href="website-demonstration.html">

    <a href="javascript:void(0)" class="dropbtn">Leeighton's Anime Walkthrough</a>

    </a>

    <div class="dropdown-content">

    <a href="website-walkthroughs.html">

    <a href="#">Walkthroughs</a>

    </a>

    <a href="biographies.html">

    <a href="#">Biographies</a>

    </a>

    <a href="what-not-to-do.html">

    <a href="#">What you shouldn't do</a>

    </a>

    <a href="pictures.html">

    <a href="#">Pictures</a>

    </a>
    
    <a href="additional-walkthroughs.html">

    <a href="#">Additional walkthroughs</a>

    </a>
    
    <a href="resources-and-information.html">

    <a href="#">Resources and information</a>

    </a>
    
    <a href="background-music.html">

    <a href="#">Background-music</a>

    </a>
    
    <a href="video-releases.html">

    <a href="#">video releases</a>

    </a>

They won't link to the pages, even though they exist. They're already on the server, too.

What is wrong with this?

Thank you.

This topic has been closed for replies.

2 replies

LIZZIE
LIZZIEAuthor
Inspiring
April 18, 2019

II stepped away and came back and figured it out. The links were doubled for some reason, and the problem was the #. It works now, though.

Legend
April 18, 2019

Why are you nesting your anchor tags, thats incorrect mark up. You only require the one anchor tag for each link. So remove the ones with empty links.