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
- Code: Select all
<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/
- Code: Select all
<li <?php echo $status; ?>> <a href="http://localhost/fcms/tos.html/">Term Service</a></li>
----
- Code: Select all
<li <?php echo $status; ?>> <a href="http://www.google.com/">Term Service</a></li>
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.