HTTP 421 Misdirected Request
The request reached a server that is not set up to answer for that hostname, usually because an HTTP/2 connection was reused for a different site.
Check a URL for HTTP 421
Paste any URL to see whether it currently returns 421. Runs a live HTTP probe and follows redirects.
TL;DR
421 means "wrong server for this hostname on this connection". It is nearly always a server or certificate set-up problem with several sites sharing an address. Visitors can only reload. The owner needs to align the certificates and site configuration.
What does HTTP 421 mean?
HTTP 421 Misdirected Request was introduced with HTTP/2. A browser may reuse one connection for several hostnames when they share an IP address and a certificate that covers them all. If the server on that connection cannot answer for the second hostname, it replies 421, and the browser is allowed to retry on a new connection. It also appears when the hostname in the request does not match the name used to set up the secure connection.
Common Causes
- •One certificate, often a wildcard, covering hostnames that are served by different site configurations
- •A browser reusing an HTTP/2 connection for a second hostname on the same IP address
- •The hostname sent at connection time not matching the Host header, behind a proxy or load balancer
- •A proxy forwarding to an origin without passing on the hostname the origin expects
How to Fix It
- 1.Make every hostname covered by a shared certificate answerable by the same site configuration, or give each site its own certificate
- 2.Behind a reverse proxy, pass the original hostname through to the origin, both in the Host header and at connection time
- 3.In Apache, check that each name-based virtual host has matching ServerName and certificate entries
- 4.As a visitor, reload the page or restart the browser to open a fresh connection
SEO Impact
Crawlers reuse connections too, so a site that returns 421 can fail for search engines from time to time. Persistent 421 responses are treated like any other 4xx and the affected pages are not indexed.
Frequently Asked Questions about HTTP 421
Why does 421 go away when I reload?
Reloading can open a new connection for the correct hostname. The first attempt failed because an existing connection to a different site was reused.
Related Status Codes
Free Website Tools
Check your site for common issues that cause HTTP errors: