Coyote6
05-01-2009, 03:15 AM
Ok, I've been at this .htaccess problem for way too long now and I am completely fed up and out of ideas on how to resolve the issue. I am running Apache 2 on my Mac which is running OS X 10.5 and have the httpd.conf set to this:
LoadModule proxy_module libexec/apache2/mod_proxy.so (which is on by default but someone said it needs to be on)
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
<Directory "/MyRootDirectory">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Then in my user file:
<Directory "/MyRootDirectory">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Then just a one line .htaccess code works:
ErrorDocument 404 /
But then you add a second line:
ErrorDocument 404 /
ErrorDocument 500 /500.php
I get a 500 internal server error. I know it's something I probably have set wrong in my config file but I'm lost on what it is. I have also tried "Options FollowSymLinks" in all of the directories but that didn't help either. I have seen other post saying that it my be the editor but I have used both TextEdit as plain text and Dreamweaver. I can't even add the <IfModule></IfModule> line. If someone could help me out I would appreciate it. If I didn't see how useful this could be I wouldn't even bother with it but the search engine optimizing possibilities with it are so great. Anyways thanks.
LoadModule proxy_module libexec/apache2/mod_proxy.so (which is on by default but someone said it needs to be on)
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
<Directory "/MyRootDirectory">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Then in my user file:
<Directory "/MyRootDirectory">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Then just a one line .htaccess code works:
ErrorDocument 404 /
But then you add a second line:
ErrorDocument 404 /
ErrorDocument 500 /500.php
I get a 500 internal server error. I know it's something I probably have set wrong in my config file but I'm lost on what it is. I have also tried "Options FollowSymLinks" in all of the directories but that didn't help either. I have seen other post saying that it my be the editor but I have used both TextEdit as plain text and Dreamweaver. I can't even add the <IfModule></IfModule> line. If someone could help me out I would appreciate it. If I didn't see how useful this could be I wouldn't even bother with it but the search engine optimizing possibilities with it are so great. Anyways thanks.