0

I want to redirect my site to a specific page (Ex: /example-page-400) if the status code received from the server is 400. Actually I am having a drupal site on which SSO login is enabled. In some cases SSO throwing 400 and I want to show a custom page in that scenario.

So thinking if it is possible to redirect to a custom page via .htaccess if status code is 400.

1
  • 1
    If you are talking about a 400 thrown by something running on Apache itself, the directive you're looking for should be ErrorDocument. Commented May 5 at 6:48

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.