I have created a custom community with and used custom vf pages. Here when i trying enter wrong URL its redirecting me to OOTB page with message "URL no longer exist" but i want it to be shown on custom vf page.

portal landing page - https://testsandbox-test.cs62.force.com/agent/home URL entered to generate error - https://testsandbox-test.cs62.force.com/agent/home2

Please help me to resolve the mentioned use case.


Dildar Hussain


I got the reason why my custom error page was not loading, along with assigning custom VF pages under site error page we also need to enable a setting under community preferences.

Thanks all for your comments and suggestions.

  • Glad you figured out. – Lance Shi Nov 29 '16 at 4:47

In your site settings, there is a section called Error pages. You can click Page Assignment button and reassign your own custom VF page there. As shown in the below screenshot:

enter image description here

  • Thanks Lance, i tried it and set a common error page for all error condition but still it is redirecting me to OOTB page. – Dildar Hussain Nov 28 '16 at 7:21
  • updated question – Dildar Hussain Nov 28 '16 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.