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
https://forums.phpfreaks.com/topic/38772-solved-errordocument-in-htaccess/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.