|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
|
.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? |
|
|
|
|
|
#2 |
|
in a van by the river
Industry Role:
Join Date: May 2003
Posts: 76,806
|
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?
__________________
In November, you can vote for America's next president or its first dictator. |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
|
Yup on both counts
|
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Sep 2001
Location: Boston
Posts: 4,873
|
is there a error.html at / on your domain?
|
|
|
|
|
|
#5 | |
|
Confirmed User
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
|
Quote:
http://www.domain.com/error.html works but /error.html or error.html does not. |
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
|
Bump?
|
|
|
|
|
|
#7 |
|
Registered User
Join Date: Jun 2003
Location: Canada
Posts: 38
|
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. |
|
|
|