PDA

View Full Version : Run-on URL's



mlivernash
05-06-2012, 08:24 PM
This probably has been asked before and I am sorry that I could not find it because I do not know how to ask my question, so I started this new post. The title to this is post is what I thought to be the best description of my problem.

My problem is:
When I click one link on my navigation bar I get:

http://livernash.com/RFExhibition/indexRFE.html

which is fine, however then lets say I click the same link(shown) or a different link I get:

http://livernash.com/RFExhibition/RFExhibition/indexRFE.html

See how the links are piling on top of each other in the URL? Since the URL keeps "building," "compiling" or "running-on" their is no website at the URL's. How can I keep this from happening and my website present so no matter how many times the user clicks links they are still at my website.

Some information about how I am building this site:
All my links are going to other html documents in sub folders of the root directory.

Example of my code:
<ul class="list-title">
<li><a class="navlink" href="RF/indexRF.html"/>Reno Funk</a></li>
<li><a class="navlink" href="RFE/indexRFE.html"/>Reno Funk Exhibition Photos</a></li>
</ul>

Any help would be much appreciated as this snag has stumped my limited knowledge and language of the wonder world of html!

Sincerely,
Michael Livernash : noob web developer.

djmatt
05-07-2012, 06:45 PM
The way you wrote your links is the problem. Without referencing your domain, the link starts at the folder you are in and then (in the case above) looks for a folder called "RF" INSIDE the current "RF" folder.


<li><a class="navlink" href="http://livernash.com/RF/indexRF.html"/>Reno Funk</a></li>

will solve the problem.

mlivernash
05-08-2012, 01:29 AM
Excellent! That worked out. Thank you djmatt!

In the <head> I put:

<base href="http://www.livernash.com/"/>

and that put the domain before all my links in the <body> section.

Thanks Again!

Michael Livernash