Hello There, Guest!
View New Posts  |  View Today's Posts
Website problem

  • 0 Vote(s) - 0 Average


12-19-2016, 06:52 PM #1
william7
Member
**
Posts: 205 Threads:49 Joined: Feb 2012 Reputation: 0

Website problem
I did this website, at http://jimsweldandfix-itshop.com/index.html, for a friend. You'll notice when you click on the same page twice it will give an "Internal Server Error." I've never had this happen before and can't figure it out. I know it's something simple. Notice how it lists the folder "About" twice (see below). It won't do it on the home page as it doesn't have a folder. Only on the "About", "Samples of Jim's Work", and "Contact Jim" pages.

12-20-2016, 04:30 AM #2
william7
Member
**
Posts: 205 Threads:49 Joined: Feb 2012 Reputation: 0

RE: Website problem
Also, below is my navigation html.
Code:
<nav>
<ul>
<li><a href="../index.html">Home</a></li>
<li><a href="About/index.html">About</a></li>
<li><a href="../weldsamples/index.html">Samples of Jim's Work</a></li>
<li><a href="../Contact/index.html">Contact Jim</a></li>
                     
</ul>
</nav>

12-23-2016, 04:59 AM #3
Mazzn
ლ(ಠ益ಠლ)
*******
Administrators
Posts: 198 Threads:16 Joined: Sep 2013 Reputation: 19

RE: Website problem
Hey, your problem is that your navigation uses links relative to the folder your page is in. As you've already noticed yourself, if you're on the "About" page, it'll navigate from "...com/About/index.html" to "...com/About/About/index.html", because your navigation is relative. If the link says "About/index.html" and you're already in the Folder "About/", it'll try to go to "About/About/"

As your navigation area always stays the same even in the sub folders, you might want absolute links:

Code:
<ul>
<li><a href="/index.html">Home</a></li>
<li><a href="/About/index.html">About</a></li>
<li><a href="/weldsamples/index.html">Samples of Jim's Work</a></li>
<li><a href="/Contact/index.html">Contact Jim</a></li>  
</ul>

Note the / in the beginning of the paths, that is the important change you'll have to make. That code can be used on every page without worrying.

Alternatively you could name your .html pages accordingly (about.html, contact.html...), move them out of the folders and use relative links (href="./about.html" or just href="about.html")

Hope I could help you out!
Visit me at mazzn.net & blog.mazzn.net!
//This is very important :)

Self.KeepImproving(true);





Forum Jump:


Possibly Related Threads...
Thread Author Replies Views Last Post
  Javascript problem william7 4 3,177 03-01-2014, 07:21 PM
Last Post: AceInfinity
  htaccess problem Skittles 8 2,547 09-09-2013, 08:02 PM
Last Post: Spirit
  Want to learn Joomla and Have a Joomla website similar to Atlantic.net sohidsen 2 2,058 05-01-2013, 07:12 PM
Last Post: AceInfinity
  Computer Desktop Site - Incredibly Unique Website! AceInfinity 3 1,681 05-03-2012, 08:59 PM
Last Post: AceInfinity
   Making a Website! [You Pick] Predator 1 1,012 03-19-2012, 11:36 PM
Last Post: AceInfinity


Users browsing this thread: 1 Guest(s)