Click to See Complete Forum and Search --> : [RESOLVED] .htaccess file incorrect code


dtm32236
01-23-2009, 03:21 PM
Hey guys,

I'm trying to configure ErrorDocuments and AddType/AddHandler things to my .htaccess file, but it's not working.

Here's my entire htaccess file:

<Files .htaccess>
order allow,deny
deny from all
</Files>

AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes

Redirect 301 /index.html http://www.pintmeisters.com/index.php

ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.php

I feel like I may be missing some code, or definitely doing something wrong and stupid. Maybe it's not parsing .shtml files correctly?

Any help is greatly appreciated.

LeeU
01-23-2009, 03:31 PM
In order to more completely learn it, check this tutorial (http://www.htaccesselite.com/htaccess-errordocument-examples-vt11.html).

Just curious, why is the 500 file a PHP file and the others are HTML>

dtm32236
01-23-2009, 03:38 PM
Just curious, why is the 500 file a PHP file and the others are HTML>

Oh - I think I messed that up. That's me being stupid.

I've been reading a tutorial, and couldn't find an answer. I'll check this one out though.

Thanks LeeU!

dtm32236
01-23-2009, 03:42 PM
It must have been the SHTML files not parsing correctly - I changed one to PHP and it worked.

Thanks again, LeeU.

LeeU
01-23-2009, 03:43 PM
Great!