Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Custom 403 works for all files except /.htaccess

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #149299
    Rugg
    Participant

    I’ve added ErrorDocument 403 /403.shtml in my .htaccess file to allow a custom 403 Error page. The custom page works for all standard 403 errors except for the .htaccess file itself. If a user attempts to access example.com/.htaccess , the standard server 403 page is displayed instead of the custom one.

    Has anyone experienced a similar issue? Is there a solution?

    EDIT:

    I’ve attempted to solve this by adding in the following snippet, but it did not work unfortunately

    <Files 403.shtml> order allow,deny allow from all </Files>
    
Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.