Skip to main content

How to customize a 400 error page?

Comments

3 comments

  • cPanelLauren
    Hello, You can modify the error pages for a specific domain by going to WHM>>Advanced>>Error Pages -> Select Domain -> Edit Common Error Codes and select 400 (Bad request)
    0
  • rappie
    Hi @cPanelLauren, thank you, I know. However, unfortunately this doesn't work in the scenario described my previous post. The modified error page isn't used in this case. So the question remains; how do I change the error page for a specific (sub) domain for this scenario?
    0
  • cPanelLauren
    That should be the method to make this modification if it's not functioning as intended I'd assume a misconfiguration at some point. You should be able to set this for the specific subdomain, from that interface. If that's not working you might try adding the following into your .htaccess file for the domain: ErrorDocument 400 /400.shtml
    If it still doesn't function properly I'd suggest opening a ticket so it can be investigated further
    0

Please sign in to leave a comment.