Issue with my links - relative paths? ref - html forum side

Hi,

i have just been passed on to finish of a website for somebody. Right now, i am trying to add html links to some of the drop down navigation menus. The drop-down i am currently working on is called ‘Applicants’ with the following undearneath:

Information for Applicants
Training courses
Enrolment Information
Benefits of Working

here is html code snippet of what i have done so far:


<div id="menu">
    <ul class="dropdown">
            <li><a href="index.html">Home</a></li>
            <li><a class="current">Applicants</a>
                <ul class="sub_menu">
                      <li><a href="applicants.html">Information for Applicants</a></li>
                     <li><a href="./applicants_fld/training-courses.html">Training Courses</a></li>
                     <li><a href="./applicants_fld/enrolment-info.html">Enrolment Information</a></li>
                     <li><a href="#">Benefits of Working</a></li>
                     <li><a href="#">Improving Career Prospects</a></li>
                     <li><a href="#">Career Advice</a></li>
                     <li><a href="#">Success Stories</a></li>
                </ul>
            </li>
 
...





When i load my webpage(index.html) up and click on the ‘Applicants’ menu button i get directed to the applicants.html page. After i have done this and begin clicking each link 1 by 1, i am able click on the links, however, when i get down to ‘Enrolment Information’ and click it, i get an error message:

The requested URL /Free2Learn/Free2learn_Website_Version_1/applicants/enrolment-info.html was not found on this server.

However, it seems that instead of having ‘applicants_fld’ in it’s file path, it has ‘applicants’.

Secondly, after seeing this error, when i hit the back button and click the ‘Training Courses’ link, i also get the same error, but for the new file:

The requested URL /Free2Learn/Free2learn_Website_Version_1/applicants/training-courses.html was not found on this server.

Here is the file path:

C:\wamp\www\Free2Learn\Free2learn_Website_Version_1\applicants_fld

file structure:
www\Free2Learn - flder
Free2learn_Website_Version_1 - folder
-> applicants.html
-> index.html

applicants_fld -folder
-> training-courses.html
-> enrolment-info







<div id="menu">
    <ul class="dropdown">
            <li><a class="current">Home</a></li>
            <li><a href="applicants.html">Applicants</a>
                <ul class="sub_menu">
                     <li><a href="applicants.html">Information for Applicants</a></li>
                     <li><a href="./applicants_fld/training-courses.html">Training Courses</a></li>
                     <li><a href="./applicants_fld/enrolment-info.html">Enrolment Information</a></li>
                     <li><a href="./applicants_fld/benefit-of-work.html">Benefits of Working</a></li>
                     <li><a href="./applicants_fld/improve-career-prospects.html">Improving Career Prospects</a></li>
                     <li><a href="./applicants_fld/career-advice.html">Career Advice</a></li>
                     <li><a href="./applicants_fld/success-stories.html">Success Stories</a></li>
                </ul>
            </li>

  

Please can somebody tell me why i get the error on when i click on my enrolment link and why that everytime i go back, i get the same error for another link? This seems to happen often and could be to do with my path.

I did try to change the paths but no change. I also removed my underscores but no affect
Please help

123,

I suppose the reason this was posted in Apache was the error statements.

The problem appears NOT to be the typical directory level shifting but using a common spelling between your applicant.html file and the applicant-fldr and having Options +MultiViews in your httpd.conf or your .htaccess. IMHO, MultiViews is more trouble than it’s worth (and I’ve not seen any value to it so that’s not difficult). Try sticking an Options -MultiViews in an .htaccess in the path (Version_1 folder?) and see if the problem persists.

Regards,

DK

Dklynn, thanks for the assist, can you explain to me what you mean exactly with the terms ‘Options +MultiViews’ as i am not very familiar with this?
Also i did manage to find httpd.conf under, ‘C:\wamp\bin\apache\Apache2.2.11\conf’ but i could not find .htaccess in my wamp folders.

In addition,IMHO means what? i take it it’s just a shorten word for a sentence?

And how do i place the Options -MultiViews in an .htaccess in the path as i’m not sure about this?

123,

MultiViews is a process whereby a filename in the middle of a path is interpreted as the file to be served. When file and directory names are the same (or just similar?), then the file will be served rather than the directory path taken.

WAMP? Argh! Create your own .htaccess file in the path to your file (I prefer the DocumentRoot) and include your Options -Multiviews there - but correcting that “mis-configuration” in the httpd.conf would be the smarter thing to do.

IMHO = In My Humble Opinion, i.e., my bias, if you prefer.

Regards,

DK

just to give you an update i’ve just been told that the site will be changed to include php backened. And i have i currently have an issue with a header not showing up, so i will leave this thread as is and post my problem in php side.

Thanks for your help though, i may revistie the this thread later.