This is more of a server problem I realize, but this Forum has been SO helpful was hoping to get some help.
I am trying to create a .htaccess file in which to create custom error pages.
ErrorDocument 400 http://www.humsci.auburn.edu/errors/badrequest.php ErrorDocument 401 http://www.humsci.auburn.edu/errors/authreqd.php ErrorDocument 403 http://www.humsci.auburn.edu/errors/forbid.php ErrorDocument 404 http://www.humsci.auburn.edu/errors/notfound.php ErrorDocument 500 http://www.humsci.auburn.edu/errors/server.php
This is what my current .htaccess file looks like, but when I go to
<A href="http://www.humsci.auburn.edu/nowhere"> http://www.humsci.auburn.edu/nowhere</a>
I get the servors error messages page. I am the sys. admin (new to this job) for the servor so getting to the server is not a problem. I am sure it is a setting somewhere, but have yet to be able to find it.
The syntax looks OK to me. Silly question: you are on an Apache webserver, yes? Assuming that you are, check the AllowOverride directive in your httpd.conf file and make sure that it is not prohibiting this.
I am pretty sure it is the second instance of AllowOverride in the httpd.conf file. What type of security problems will get into if I turn this on? Will it keep my previous settings, and just allow the .htaccess to supercede the server settings?
oldschr wrote:I am pretty sure it is the second instance of AllowOverride in the httpd.conf file. What type of security problems will get into if I turn this on? Will it keep my previous settings, and just allow the .htaccess to supercede the server settings?
Yes, that's the idea: it allows .htaccess files to override its settings. At a minimum, you'd need to set AllowOverride FileInfo in httpd.conf for you to use ErrorDocument settings in .htaccess files. See http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride for more info.