Author Topic: error 404 File not found which not exist  (Read 6481 times)

0 Members and 1 Guest are viewing this topic.

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
error 404 File not found which not exist
« on: October 10, 2005, 10:54:35 PM »
Hello everybody!

I defined my .htaccess file and now I get an email when somebody gets an 404 error on my site!

Error 404 File not found -> http://www.my-domain.de/4images/data/media/folder/file.smi

My problem is that I have no *.smi file on the server so that a url like above normaly not exist!?!?!!!

But why?

THX for an answer by Flo



Project offline

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: error 404 File not found which not exist
« Reply #1 on: October 10, 2005, 10:59:08 PM »
can we see the content of the .htaccess?

And i still not understand the Problem... (o:

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: error 404 File not found which not exist
« Reply #2 on: October 10, 2005, 11:08:04 PM »
The content of my .htaccess

Quote
ErrorDocument 403 /error/403.php
ErrorDocument 404 /error/404.php
ErrorDocument 500 /error/500.php

The content of my 404.php

Quote
<?php
  // Fehlercode
  $fehlercode = "404";

  // Adresse, an welche die E-Mail versendet werden soll
  $empfaenger = "my email @ my server.com";
  $betreff = "[" . $_SERVER["SERVER_NAME"] . "] Fehler " . $fehlercode;

  // Nachricht zusammenbauen.
  $message = "Auf der Website http://" . $_SERVER["SERVER_NAME"] . " ist ein Fehler " . $fehlercode . " aufgetreten.\n\n";
  $message .= "Aufgerufene Ressource:\n";
  $message .= "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]."\n\n";
  $message .= "User-Agent:\n";
  $message .= $_SERVER["HTTP_USER_AGENT"];
  if($_SERVER["HTTP_REFERER"] != "") {
    $message .= "\n\nAufgerufen von der Adresse:\n";
    $message .= $_SERVER["HTTP_REFERER"];
  }

  // Header-Informationen
  $header = "From: Error Agent <erroragent@" . $_SERVER["SERVER_NAME"].">\n";
  $header .= "Content-Type: text/plain";

  // Mail zusammenstellen und absenden
  @mail($empfaenger, $betreff, $message, $header);
?>


The problem is that somebody click a link on my site of a file which does not exist  :|

Project offline

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: error 404 File not found which not exist
« Reply #3 on: October 10, 2005, 11:17:33 PM »
Also ich versuche es mal in deutsch... (o:

Also es kann immer jemand Links aufrufen die es nicht gibt, da wirst Du auch nichts dran ändern können. Nur wie dein Server mit dieser Anfrage umgeht kannst Du beeinflussen.

Oder klappt was mit der .htaccess Datei was nicht richtig?

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: error 404 File not found which not exist
« Reply #4 on: October 10, 2005, 11:30:03 PM »
Okay dann in deutsch:

Also mein Problem ist es, das der User Dateien mit einem Link geöffnet hat, die eine Endung *.smi haben.

Isch abe aber keine *.smi Dateien auf dem Server, also können diese ja auch nicht geöffnet werden :!:  :roll:

Ps: Mir ist klar, dass der User die Links auch selber aufrufen kann  :D, aber ich glaube die wurden von 4images generiert!?!??!!!


Project offline

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: error 404 File not found which not exist
« Reply #5 on: October 11, 2005, 12:00:33 AM »
perhaps you should search from ACP for an "image" with filename as file.smi
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: error 404 File not found which not exist
« Reply #6 on: October 11, 2005, 12:10:48 AM »
No, I didn´t find anything like this :o

I think the user opens such files with a player which only supports the format *.smi

:idea: And now the Player looks for this file (*.smi) on my server, but this file is an *.mp3 and not *.smi - I also get this error message :idea:

Perhaps that´s the way... - I think so...

Project offline

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: error 404 File not found which not exist
« Reply #7 on: October 11, 2005, 01:41:55 AM »
As I understud from this article, .smi is an extension for media players that allow display some captions and such in parallel with the media. I guess, some of you visitors have such features turned on in their media players.
If this is the case, I only could suggest you change your 404 script not to send emails when a .smi file was requested.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)