PDA

View Full Version : The requested URL xxx does not exist



Esmail Fahimi
10-08-2009, 07:55 PM
My page submits http://www.test.com/public_html/cgi-bin/test.php which causes error:

404 Not Found
The requested URL /public_html/cgi-bin/test.php does not exist.



Here is the test.php
--------------------


<?php
$to = 'support@test.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: sales@test.com' . "\r\n" .
'Reply-To: sales@test.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

I can run this php from shell and it works.
What I am doing wrong?

Any pointers will be highly appreciated.
Thanks

EricJ
10-08-2009, 08:04 PM
The problem is that you're including public_html in your URL.. your domain name already points to public_html.. so with that current URL, you're trying to access a directory called public_html inside public_html.. try this instead:


http://www.test.com/cgi-bin/test.php

Esmail Fahimi
10-08-2009, 08:47 PM
Thank you Eric.
The error is now changed.

Not Found

The requested URL /cgi-bin/test.php was not found on this server.
Apache/2.2.3 (Red Hat) Server at search.comcast.com Port 80

I am wondering why the response is now from comcast.
Comcast is my ISP, but my site is on blue host.

Regards.

Esmail Fahimi
10-08-2009, 09:55 PM
BTW, the attachment shows how the submit button is defined in case it helps.
Thanks,

farcaster
10-08-2009, 10:05 PM
About two months ago Comcast decided to put their nose into this business of capturing "site not found" messages. I had the same thing. I believe an email was sent out to customers showing how to access their comcast account and opt out of this. I did so immediately. Once you do this, they will take their bloody time about removing you from that "service".

EDIT: It took a while on their site, but I found the link to opt-out of the "DNS-Helper" program they have.

Good luck -> https://dns-opt-out.comcast.net/

Esmail Fahimi
10-08-2009, 10:27 PM
Thank you!!!
Much appreciated.