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

后端 未结 4 613
自闭症患者
自闭症患者 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条回答
  •  温柔的废话
    2020-12-03 05:18

    Whatever url you enter as the default 404 page must be either absolute or relative from the root folder : That's why some make the mistake of treating its url like the rewrite engines' url which is relative from the folder where .htaccess is located.

提交回复
热议问题