To set up a custom 404 error message on Windows in IIS, there are the following things to keep in mind when using PHP files:
1. The custom 404 file cannot be a server-side executable script like PHP or ASP, it has to be a flat HTML file (.htm or .html extension is fine).
2. The .PHP extension handling has to have the checkbox "verify that the file exists" checked in order to see the custom 404 error page if a .php extension is used in the URL.
3. Restarting the website after setting these changes might help.
Thursday, December 10, 2009
Custom 404 error messages in IIS
Labels:
404,
asp,
custom,
executable,
exists,
extension,
file,
iis,
php,
restarting,
verify,
virtual server,
website,
windows
Busy time before going on vaction to Namibia
This week in particular is rather busy because of everything that I have to get done before going on vacation to Namibia to visit family. Last night was a case of working late and then when I finally had time for myself, it was close to midnight. After midnight, I got a work related SMS and finally went to bed at 3AM because of that.
Subscribe to:
Posts (Atom)