.htaccess cross browser

Posted by lordsharp on Stack Overflow See other posts from Stack Overflow or by lordsharp
Published on 2010-06-15T12:14:08Z Indexed on 2010/06/15 12:22 UTC
Read the original article Hit count: 166

Hi,

Im trying to load a custom error document for a 404 error using a .htaccess file on a linux server, the page gets the current page URL then redirects to another site (which is retrieved from a db) based on an id it retrieved from the URL.

The current error documents are stored here:

/error_docs/ - i dont have permission to upload anything other than the HTML files that are already in there

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

i have used the following to load the 301redir.php page as the error doc, which works in FF but no other browsers.

ErrorDocument 404 /310redir.php

using .htaccess is my only real option for changing this, is there a way to get around this issue and make it work across all browsers?

© Stack Overflow or respective owner

Related posts about php

Related posts about .htaccess