|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Join Date: Apr 2003
Location: Oregon
Posts: 274
Reputation: 5
|
how do I make custom error pages
I want to create my own custom error pages. How do I do that?
|
|
|
|
|
#2 |
|
Join Date: Oct 2003
Location: Martinsburg, WV
Posts: 36
Reputation: 8
|
Drop an .htaccess file in your httpdocs root containing lines such as follows:
ErrorDocument 400 /error_pages/400.html The ErrorDocument 400 directive tells the server to return /error_pages/400.html whenever http error 400 occurs. The path and filename of the actual error page you create will vary based on however you have your filesystem organized, so just specify the relative path from your htdocs root to wherever your custom error pages are stored. For different error codes, just change the 400 to whatever error condition you want to address with a custom error page. I have the following in mine.. ErrorDocument 400 /error_pages/400.html ErrorDocument 403 /error_pages/403.html ErrorDocument 404 /error_pages/404.html ErrorDocument 405 /error_pages/405.html ErrorDocument 408 /error_pages/408.html ErrorDocument 500 /error_pages/500.html ErrorDocument 501 /error_pages/501.html ErrorDocument 503 /error_pages/503.html
__________________
Got Shell? echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc http://www.webflux.net Corruptissima republica, plurimae leges. -- Caius Cornelius Tacitus |
|
|
|
|
#3 |
|
Just tryin' to help
Join Date: Jan 2003
Location: along the journey
Posts: 8,036
Reputation: 125
|
Take a look here for an example and info:
http://prettyworthless.com/tips.php?tip=not_found#tip
__________________
Enhance your PowWeb experience @ B&T's Tips & Scripts Got some free time? You can find Nothing of Value @ PrettyWorthless.com |
|
|
|
|
#4 |
|
Join Date: Apr 2003
Location: Oregon
Posts: 274
Reputation: 5
|
thnx, guys.
|
|
|
![]() |
| Thread Tools | |
|
|