|
RE: PHP won't redirect to error page
This is an interesting situation. What is happening is that when u do not enter a page that is not to be handled by PHP like .html or .gif , the web server IIS, redirects according to its default redirect settings. But when you request a .shtml page which is processed by PHP, IIS is passing this parameter to PHP as it was configured. Hence PHP is returning a No input file specified error. Apache on the other hand first checks for a missing file and then redirects. I strongly believe that this is a problem with IIS and i am no IIS expert, so tell this to your host and let them correct it. Or else, if you would take my suggestion, log-on to #php on EFNet. But whatever the case, I should mention that support for Windows is slim as most users r Unix-based. Cheers!
|