What Causes 406 Error

Rare but frustrating: Server cannot respond with requested content characteristics.

Most Common Trigger

ModSecurity rule rejecting request due to unacceptable content in headers or body.

Check ModSecurity Hits

WHM → ModSecurity Tools → Hits List → Look for rule 406-related blocks.

Solutions

Disable Offending Rule

Find rule ID (often 958000 series) → Disable for domain or globally if safe.

Whitelist Headers

Add SecRuleEngine DetectionOnly or whitelist specific Accept headers.

Plugin or Theme Issue

Test by disabling security plugins or switching theme.

Common Scenarios Table

ScenarioCauseFix
AJAX requestsModSecurityDisable rule 958000
REST API callsHeader inspectionWhitelist Accept header
Form submissionContent-TypeCheck encoding