Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect missing PHP files to a single file

Status
Not open for further replies.

ofcalcul

IS-IT--Management
Sep 28, 2004
24
RO
I have to redirect any link to a page that doesn't exist on my website to the /index.ph file.
For the html, htm, jpg files it works fine with
ErrorDocument 404 /index.php
in the .htaccess file.
For the PHP files it doesn't work at all, I get an 404 error message too in Internet Explorer and a "No input file specified." in Mozilla Firefox.
Do you have any idea how could I solve this for the PHP files too?
The shorter idea is:
the link to I need to redirect it to
Thank you,
Cristian
 
ofcalcul,

I haven't had a problem redirecting error pages myself. The problem could be that the error code is something other than 404.

What do your Apache log files show?

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top