php - .htaccess cross browser -


I try to load a custom error document to a .404 error on the Linux server using the .htaccess file I am redirecting the page to another site based on the current page url then the ID received from the URL (which is taken from DB).

The current error documents are stored here:

/ error_docs / - I do not have permission to upload anything other than the HTML files already existing

/HTTPDocs/301redir.php The site is root where the .htaccess file is.

I used the following to load the 301reedir.php page as an error dock, which works in FF but there is no other browser

ErrorDocument 404 / Using 310redir.php

.htaccess is my only real option to change this, is there a way to find this problem and work it in all browsers?

Your file may be too small, see the following quotes with the following:

< Blockquote>

Microsoft Internet Explorer (MSIE) by default will ignore the error messages generated by the server when they are "too small" and move their own "friendly" error messages. The size threshold depends on the error type, but in general, if you create your error document more than 512 bytes, then the MSIE will show the error generated from the server instead of masking. More information is available in the Microsoft Knowledge Base article Q294807.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -