Custom 404 error issues with Apache - the ErrorDocument is 404 as well

后端 未结 4 614
自闭症患者
自闭症患者 2020-12-03 04:51

I am trying to create a custom 404 error for my website. I am testing this out using XAMPP on Windows.

My directory structure is as follows:

error\\4         


        
4条回答
  •  Happy的楠姐
    2020-12-03 05:40

    .htaccess files are disabled by default in Apache these days, due to performance issues. When .htaccess files are enabled, the web server must check for it on every hit in every subdirectory from where it resides.

    Just figured it was important to note. If you want to turn on .htaccess files anyway, here's a link that explains it:

    http://www.tildemark.com/enable-htaccess-on-apache/

提交回复
热议问题