Skip to main content

Custom 404 shows “File not found” for php files instead of redirecting

Comments

5 comments

  • monkey64
    Fixed it in the end by adding the following to the Post VirtualHost Include of the Apache Configuration Include Editor: Post VirtualHost Include
    0
  • cPanelMichael
    Hello @monkey64, I'm glad to see you were able to solve the issue. It looks like the entry in your code is missing. Can you confirm the code you used for the Post VirtualHost Include field? Thank you.
    0
  • monkey64
    Please ignore my previous post because I did not enter the correct code. Fixed it in the end by adding the following to the Post VirtualHost Include of the Apache Configuration Include Editor: ProxyErrorOverride On
    0
  • cPanelLauren
    Hi @monkey64 Thanks for updating the thread with the solution that worked for you! I'll go ahead and mark this as resolved. Thanks!
    0
  • PeteS
    Please ignore my previous post because I did not enter the correct code. Fixed it in the end by adding the following to the Post VirtualHost Include of the Apache Configuration Include Editor: ProxyErrorOverride On

    FWIW I have been dealing with this in another thread and you might be interested in this post by cPREX: The method you and I used breaks Webmail, and is not recommended (for other non-descript reasons). There is an include for the individual vhost file but cPREX reports is it currently broken, and he opened a case for it.
    0

Please sign in to leave a comment.