PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > General Issues / Questions
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools
Old 12-3-04, 10:23 PM   #1
pk698
 
pk698's Avatar
 
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?
pk698 is offline  
Old 12-3-04, 10:29 PM   #2
Ochiba
 
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
Ochiba is offline  
Old 12-3-04, 10:31 PM   #3
B&T
Just tryin' to help
 
B&T's Avatar
 
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
B&T is offline  
Old 12-3-04, 11:05 PM   #4
pk698
 
pk698's Avatar
 
Join Date: Apr 2003
Location: Oregon
Posts: 274
Reputation: 5
thnx, guys.
pk698 is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:48 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.