Answers.Body: <p>May be '<a href="https://civicrm.org/extensions/civicrm-error-report-handler" rel="nofollow noreferrer">CiviCRM Report Error</a>' extension may do your work! The extension does have setting to redirect from error page. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-14T19:09:58.327Z
Answers.LastActivityDate: 2020-04-14T19:09:58.327Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Often I see in the drupal log that some people try to access invalid URLs. By default civi shows a message like this</p>
  
  <blockquote>
    <p>$Fatal Error Details = Array ( [message] => We can't load the
    requested web page. This page requires cookies to be enabled in your
    browser settings. Please check this setting and enable cookies (if
    they are not enabled). Then try again. If this error persists, contact
    the site administrator for assistance.<br /><br />Site Administrators:
    This error may indicate that users are accessing this page using a
    domain or URL other than the configured Base URL. EXAMPLE: Base URL is
    <a href="http://example.org" rel="nofollow noreferrer">http://example.org</a>, but some users are accessing the page via
    <a href="http://www.example.org" rel="nofollow noreferrer">http://www.example.org</a> or a domain alias like
    <a href="http://myotherexample.org" rel="nofollow noreferrer">http://myotherexample.org</a>.<br /><br />Error type: Could not find a
    valid session key. [code] => )</p>
  </blockquote>
  
  <p>How can I redirect user to 404 page or similar page? Is it something possible to do? Thanks</p>
  
Tags: <error-page>
Title: How to redirect user when a civicrm error message shows up?
ThreadText: # How to redirect user when a civicrm error message shows up?
  
  (Asked by: username_0 on 2020-04-14)
  
  Often I see in the drupal log that some people try to access invalid URLs. By default civi shows a message like this
  
  > $Fatal Error Details = Array ( [message] => We can't load the
  > requested web page. This page requires cookies to be enabled in your
  > browser settings. Please check this setting and enable cookies (if
  > they are not enabled). Then try again. If this error persists, contact
  > the site administrator for assistance.  
  >   
  > Site Administrators:
  > This error may indicate that users are accessing this page using a
  > domain or URL other than the configured Base URL. EXAMPLE: Base URL is
  > <http://example.org>, but some users are accessing the page via
  > <http://www.example.org> or a domain alias like
  > <http://myotherexample.org>.  
  >   
  > Error type: Could not find a
  > valid session key. [code] => )
  
  How can I redirect user to 404 page or similar page? Is it something possible to do? Thanks
  
  **Tags:** error-page
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-04-14. Score: 4 | Accepted answer
  
  May be '[CiviCRM Report Error](https://civicrm.org/extensions/civicrm-error-report-handler)' extension may do your work! The extension does have setting to redirect from error page.
  
  
  ---
  
  