A Href 404 Error help. Noobie question. tx

ampp ver 1.7.4 Newest version.
Running vista in a localhost environment.
404 error means file not found.

I am working on an application. Everything is running fine. In that application, I am trying to create Term of Service web page.
Going nuts and on how to write a href code to not have a 404 error

<li <?php echo $status; ?>> <a href="tos.html/">Term Service</a></li>

Try various dir path but still error. Thus I decided to use above code. Ran it and I got the 404 error in Mozilla. But in the fox browser I notice the address bar content http://localhost/Fcms/tos.html/

<li <?php echo $status; ?>> <a href="http://localhost/fcms/tos.html/">Term Service</a></li>

I try this base on seeing the firefox address bar content. Again, 404 error. Thus in c:/xampp/htdoc/fcms/ folder, I have tos file place there (window shows name: tos type: firefox document).

<li <?php echo $status; ?>> <a href="http://www.google.com/">Term Service</a></li>

get sent to google to confirm code works.

I know it is a rookie mistake of what to type for the a href=??? and appreciate your help. Tx in advance.

PS: When to use tos.html and tos.htm in the a href coding? In unrelated project, I try html and htm and accepted the one that works. Wondering when to use htm for I always believe to be html. Insight appreciated.
Can u please verify or provide the correct a href coding. I am going nuts for have to refresh applicate, refresh xampp, and
uncertain if my code is right. Again, tx and appreciate your help.

Edit: Tx ralph for your reply. Normally, I solve with trial and error. But this one requires login, code changing, clear application cache, clear browser cache, refresh xampp and enter the correct information.

Curios, when do u use html and htm. In another html only coding, surprise it only accept .htm for file name and just wondering. tx

Remove the final slash (shown in red below) and it should work:

<li <?php echo $status; ?>> <a href=“http://localhost/fcms/tos.html[COLOR=“Red”]/[/COLOR]”>Term Service</a></li>

If you use a final slash, the server thinks you are looking for a folder, not a file.

Just stick to using .html.

Also it looks like the echo should be moved outside of the ‘starting LI tag’ because it will print something weird.

Tx Ralph and xhtmlcoder for lyour reply. Normally, I solve with trial and error. But this one requires login, code changing, clear application cache, clear browser cache, refresh xampp and enter the correct information permutation for me to go crazy.

Still getting a wiping with the slash at end remove.

<li <?php echo $status; ?>> <a href="http://localhost/fcms/aboutus.html">About Us</a></li>
$lang["antispam"] = "<a href='http://localhost/fcms/tos.html'>I agree to the Terms of Service..</a>"; // wrap Term & Condition with HTML link to  TOS 

In folder C:\xampp\htdocs\Fcms,
I have files
Type Firefox document

Firefox address bar

Firefox display with the above address bar

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
07/03/2011 1:27:10 AM
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1

Please note. if I use “<a href=‘http://google.com/’>I agree to Terms of Service</a>”, I am sent to google.com

Will do clear application cache, clear fox browser cache, reinstall the plugin antispam with the tos, refresh xampp, then do a shutdown with vista to be on the safe side. Total clean to confirm no doublts. tx

Once you’re logged in you shouldn’t have to keep doing that.

Anyway, one thing I notice: you say your folder is at


yet you are pointing the browser to


There may be a problem with that capital F. Not sure, but worth checking, anyway.

Tx ralph for your good eyesight and hopes it works. When all else fails and do not know what to do, I eliminate any possible old code. The application has plugin that can be install. Thus when I do code change and install in the application. I need to make sure all old code disappear. Vista was an overkill but my sos helpers will know there is no contamination. tx

Will do the change now. Changing Fcms folder to fcms. Will put that one for experience. tx

30 min rule does not allow prior thread edit and thus place here to reflect Fcms is now fcms. tx
In folder C:\xampp\htdocs\fcms,
I have files
Type Firefox document

Edit: Bummer, it did not work. tx

Tx Ralph, problem resolved. Has something to do with the application wanting in there syntax. Still new to that ap to deduce. tx