Error page when root doesn't exist


#1

Hello,

We have multiple websites linked to our pimcore, how can i create an error page for a single website.

Basicly, how can i show an error page that i created rather than a system error page automaticly shown by pimcore.

Thanks


#2

Create a Kernel Exception Listener and render a view. Thats basically it. You can either define the template via website-settings or as a document property on the site.


#3

Hi,
as an alternative, in sites settings you can define an error page for each website: https://pimcore.com/docs/5.x/Development_Documentation/MVC/Routing_and_URLs/Working_with_Sites.html

BR
Christian