View Single Post
Old 01-20-2012, 04:05 PM   PM User | #6
leslie.jones
New Coder

 
Join Date: Nov 2011
Posts: 88
Thanks: 4
Thanked 26 Times in 26 Posts
leslie.jones is an unknown quantity at this point
Quote:
Originally Posted by helenp View Post
Thanks,

[Fri Jan 20 02:48:43 2012] [error] [client 208.115.111.68] File does not exist: /home/mysite/public_html/espanol/z1masfotos_banana_beach_bw.htm
[Fri Jan 20 02:48:40 2012] [error] [client 208.115.111.68] File does not exist: /home/mysite/public_html/z1morephotos_casa_blanca_4.htm
[Fri Jan 20 02:44:30 2012] [error] [client 69.171.229.249] File does not exist: /home/mysite/public_html/photos
they are taken to index.htm same as index.php are.
You have, somewhere, set up a custom 404 error page that directs ANY request for a non existent file to index.htm. Here it is:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Page not found</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="http://www.marbellasunrentals.com/css/nuevotest7.css">
<meta http-equiv="Refresh" content="5; URL=index.htm">
</head>
<body>
<div id="container">
<div id="title"><a class="title" href="index.htm">Marbella Sun Rentals</a></div>
  <div id="content1">
  <div class="texto">
    <p>&nbsp;</p>
    <p><a href="http://www.marbellasunrentals.com"><img src="http://www.marbellasunrentals.com/images/bandera_inglesa_.gif" alt="Web in english" width="25" height="16" border="0"></a> 
      Sorry, this page was not found. In a few seconds, you will be redirected 
      to our main page. If you aren&acute;t redirected automatically, just make 
      clic on the flag of language of your choise.</p>
    <p><a href="http://www.marbellasunrentals.com/espanol/"><img src="http://www.marbellasunrentals.com/images/bandera_espanola_.gif" alt="web en espanol" width="25" height="17" border="0"></a> 
      Lo sentimos, esa p&aacute;gina no existe, en unos segundos ser&aacute; redireccionado
       a nuestra p&aacute;gina principal. Si no fuera redireccionado autom&aacute;ticamente,
        solamente haga clic en bandera de su idioma preferido.</p>
    <p><a href="http://www.marbellasunrentals.com/svenska/"><img src="http://www.marbellasunrentals.com/images/bandera_sueca_.gif" alt="web pa svenska" width="25" height="16" border="0"></a> 
      Den h&auml;r sidan kunde inte hittas, om en liten stund kommer du att flyttas 
      till v&aring;r startsida. Om du inte flyttas automatiskt, klicka 
      p&aring; ditt spr&aring;ks flagga.</p>
    </div>
  </div>
</div>
</body>
</html>
People (hackers, general nerds, search engines etc) will try index.php regardless of if you have links to it or not - such noise in apache logs is common.

Your specific 404 handler means requests for absolutely anything that should fire off a '404 page not found' will redirect to index.htm after five seconds because of the meta-refresh in your custom 404 page.
leslie.jones is offline   Reply With Quote