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