Php – Apache 404 Error While PHP File Exists

chmodhttp-status-code-404PHP

I am getting 404 error while the file exist. I gave the file (chmod 755) still the file does not show up. Strange part it only happens to few files. I am certain the file exists on the directory and PHP file have no script errors. My .htaccess file says

ErrorDocument 404 http://mydomain.com/404.shtml

This only happens on my Google Chrome browser and it works fine on Safari.

Best Answer

If it only happens in some browsers but not in others, have you tried clearing the browser cache? ErrorDocument with an absolute URL will send a redirect, which might be cached in your browser.

Related Topic