I am using the following code in my .htaccess:
ErrorDocument 404 error_page.php?msg=404
When I trigger a 404 error, I get a page that says this:
error_page.php?msg=404
Is there something that I am doing wrong?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure if you can pass query strings to the document designated by
ErrorDocument, Something you can try is using it in conjunction with mod_rewrite:Since this is in a subdirectory off of the document root, it changes everything.
Say the subdirectory is
/something/Assuming that your
error_page.phpfile is actually in the/something/subdirectory.