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

  • 0 Vote(s) - 0 Average


12-23-2016, 04:59 AM #3
Mazzn
ლ(ಠ益ಠლ)
*******
Administrators
Posts: 199 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:


Messages In This Thread
Website problem - by william7 - 12-19-2016, 06:52 PM
RE: Website problem - by william7 - 12-20-2016, 04:30 AM
RE: Website problem - by Mazzn - 12-23-2016, 04:59 AM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Javascript problem william7 4 4,047 03-01-2014, 07:21 PM
Last Post: AceInfinity
  htaccess problem Skittles 8 3,196 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,587 05-01-2013, 07:12 PM
Last Post: AceInfinity
  Computer Desktop Site - Incredibly Unique Website! AceInfinity 3 2,249 05-03-2012, 08:59 PM
Last Post: AceInfinity
   Making a Website! [You Pick] Predator 1 1,229 03-19-2012, 11:36 PM
Last Post: AceInfinity


Users browsing this thread: 1 Guest(s)