GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   .htaccess issues - Custom Error Documents (https://gfy.com/showthread.php?t=344877)

Dusen 08-22-2004 05:42 PM

.htaccess issues - Custom Error Documents
 
I've used cusom error pages in my domains.

however - I think I'm missing something with regards to the logic. I could NEVER have:

ErrorDocument 404 /error.html

I always needed to have

ErrorDocument 404 http://www.domain.com/error.html

Almost all the "tutorials" I have seen with regards to this say you can do /error.html instead of the full domain but none explain the difference.

Why is this? Am I missing an option in my httpd.conf? Do I need to "enable" some sort of virtual directory resolution like followsymlinks?

crockett 08-22-2004 05:50 PM

did you happen to try just plane error.html ? with out the / I also is your htacces is in the same dir as the error.html page?

Dusen 08-22-2004 05:52 PM

Yup on both counts :(

s9ann0 08-22-2004 06:02 PM

is there a error.html at / on your domain?

Dusen 08-22-2004 06:04 PM

Quote:

Originally posted by spanno
is there a error.html at / on your domain?
Yes.

http://www.domain.com/error.html works but
/error.html or error.html does not.

Dusen 08-23-2004 04:29 AM

Bump?

SuperGuy 08-23-2004 04:34 AM

If you're running virtual servers, you should define your error document in httpd.conf (that's what I do) and you can customize it for each domain quite easily.

It should work with the .htaccess method in the top level of the domain, but I have never had a problem with it in the httpd.conf.


All times are GMT -7. The time now is 03:23 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123