.htaccess error

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

ELECTR0ZED

Thread Starter
Joined
Jun 17, 2016
Messages
2
Help

For my page i am designing i have added into my .htaccess file an errordocument which doesnt work and is causing my page to have an error 500 internal server

Here is the code which is messing it up:

//Custom 400 errors
ErrorDocument 400 /errorpages/400.htm

//Custom 401 errors
ErrorDocument 401 /errorpages/401.htm

//Custom 403 errors
ErrorDocument 403 /errorpages/403.htm

//Custom 404 errors
ErrorDocument 404 /errorpages/404.htm

//Custom 500 errors
ErrorDocument 500 /errorpages/500.htm

Here is the full .htaccess document:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]

SetEnv SERVER_ADMIN [email protected]

DirectoryIndex index.htm

//Custom 400 errors
ErrorDocument 400 /errorpages/400.htm

//Custom 401 errors
ErrorDocument 401 /errorpages/401.htm

//Custom 403 errors
ErrorDocument 403 /errorpages/403.htm

//Custom 404 errors
ErrorDocument 404 /errorpages/404.htm

//Custom 500 errors
ErrorDocument 500 /errorpages/500.htm

I hope someone can help

Thanks
 

colinsp

Colin
Joined
Sep 5, 2007
Messages
2,314
Do you have a path error?

What happens if you type http://yourdoamin.com/errorpages/500.htm into your browser? Do you go to your 500 page? I expect not. Check your path, check the spelling particularly letter case and also ensure that the html page displays correctly.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top