Jump to content

[SOLVED] ErrorDocument in htaccess


scs

Recommended Posts

Im fairly new to using htaccess files. I've never had to use them before. But now I use them all over the place. There very useful.

 

Anyways, my problem is using the error documents. 404, 400, 500, ect....

My server says I can do this

ErrorDocument 400 http://www.your_domain.com/400.html

 

Well I created a php instead of a plain html. What I want to kno is how do I tag on the end of the php file the current file that caused the error. Like so

ErrorDocument 400 http://www.your_domain.com/index.php?a=400&file=&FILE&

 

I kno thats not what u do. But u get the idea. I want to be able to record that file and use it in the error message.

 

Thanx in advance

Zach

Link to comment
Share on other sites

Nope, It wasnt there. I made sure, I type a very random file that would be noticeable. something like sdkfjbsdfkjsbdfjbs.txt to trigger a 404 error. and that did not show up anywhere.

 

But thanks

Got any other ideas?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.