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
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/
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).
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
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
tos
aboutus
Type Firefox document
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
localhost
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
b
Please note. if I use “<a href=‘http://google.com/’>I agree to Terms of Service</a>”, I am sent to google.com
tx
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
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
tos
aboutus
Type Firefox document