1

Is there a way to make apache redirect error codes (401 particularly) to a custom page?

I tried using "ErrorDocument 401 /errors/somepage.html" in the htaccess file but its not working.
Any other ways of doing that?

Oh - I don't have access to httpd.conf :>

1
  • You should be able to get from your hosting provider which settings you are able to override in an .htaccess file. Commented Mar 26, 2011 at 22:43

1 Answer 1

1

If you have been granted the appropriate override in the httpd.conf you will be able to do it in .htaccess. If you don't have that override permission you won't be able to do it without access to the httpd.conf.

AllowOverride FileInfo 

in the section of the httpd.conf for your site will grant you the permission to set error pages in .htaccess. If there is already an AllowOverride entry then add FileInfo to the existing one.

Contact the person who has control over the httpd.conf file and ask if they will add that permission.

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.