Reply
htaccess help
Old 02-15-2008, 08:48 PM htaccess help
jonathanadams's Avatar
Experienced Talker

Posts: 33
Name: Jonathan Adams
I am redesigning/coding my website from scratch. Im trying to use htaccess so i can have custom error pages.

i am using this code
Quote:
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/500.html
When i upload it to my server and test. I get a error number 500.

Am i missing any code. btw i;m hosted with dreamhost
jonathanadams is offline
Reply With Quote
View Public Profile Visit jonathanadams's homepage!
 
When You Register, These Ads Go Away!
     
Old 02-22-2008, 08:28 PM Re: htaccess help
frofi's Avatar
Extreme Talker

Posts: 210
Location: London
Too little info. How did you test it? Have you tried to remove the last directive ErrorDocument 500 /error/500.html and test it again? What server are you hosting on? Does your host support custom error pages?
Quote:
Microsoft Internet Explorer (MSIE) will by default ignore server-generated error messages when they are "too small" and substitute its own "friendly" error messages. The size threshold varies depending on the type of error, but in general, if you make your error document greater than 512 bytes, then MSIE will show the server-generated error rather than masking it. More information is available in Microsoft Knowledgebase article Q294807.
Most importantly though, what do you need custom error pages for? Just make an index.html page informing people about the site re-building.
__________________
www.frofi.co.uk THE FORCE is with me at last! All I need now is some TALKUPATION ;)
frofi is offline
Reply With Quote
View Public Profile Visit frofi's homepage!
 
Old 03-04-2008, 05:28 AM Re: htaccess help
ooyes's Avatar
Skilled Talker

Posts: 54
Name: Web Design Company
Location: London
Hi John you can take a look ad this tutorial its pretty neat and i am sure it will help you http://perishablepress.com/press/200...access-tricks/
__________________
Website design
ooyes is offline
Reply With Quote
View Public Profile Visit ooyes's homepage!
 
Reply     « Reply to htaccess help
 

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11577 seconds with 13 queries