I have some problems for rendering a custom error page for my website. Joomla is installed at the root of my domain.
I have created an error.php
page inside templates/mytemplate/
directory but this page is not rendered every time I insert a wrong url.
Some examples follows to better explain my problem with typed url and corresponding obtained page:
- www.example.org/something-not-existing
-->
not custom error page (see below) - www.example.org/index.php/something-not-existing
-->
home page - www.example.org/index.php?option=com_component-not-existing
-->
custom error page,404 Component not found
- www.example.org/index.php?option=com_existing-component&view=not-existing-view
-->
custom error page,500 View not found
Not custom error page:
Not Found
The requested URL /something-not-existing was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Why I don't get the custom error page also in the first two cases?
error.php
file to pastebin.com so we can take a look?