Results 1 to 3 of 3

Thread: Run-on URL's

  1. #1
    Join Date
    May 2012
    Posts
    2

    Default Run-on URL's

    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/RF.../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.

  2. #2

    Default

    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.
    Matt

    My life can be summed up in one word, "indescribable".

  3. #3
    Join Date
    May 2012
    Posts
    2

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •