506 Variant Also Negotiates
A 506 is a server misconfiguration in content negotiation. See the Apache type map that triggers it, a curl repro, and the flat type map that fixes it.
- Defined in
- RFC 2295 (Experimental), section 8.1
- Class
- 5xx server error
- Who causes it
- The server configuration, never the visitor
A 506 Variant Also Negotiates means the server has an internal configuration error: the variant it chose for a request is itself set up for content negotiation, so it cannot be the end of the negotiation. On Apache the usual cause is a type map that points at another type map. List every variant in one map, or point each variant at a plain file.
Where does your site stand?
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
- Free audit in 60 seconds
- Fixes drafted for your review
- ChatGPT, Perplexity, Gemini and AI Overviews tracked
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
- Re-check after big site changes
- Keep this page for reference
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
- Follow the steps below
- Top-traffic pages first
- Check again in a month
At a glance
- RFC 2295 (Experimental), section 8.1
- Defined in
- 5xx server error
- Class
- The server configuration, never the visitor
- Who causes it
- HTTP_VARIANT_ALSO_VARIES
- Apache constant
What the 506 status means
RFC 2295 (Transparent Content Negotiation in HTTP, an Experimental RFC) defines it: the 506 status code indicates that the server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process. MDN describes the cause as server misconfiguration that results in circular references when creating responses.
Content negotiation means one URL with several variants (languages, formats). In server-driven negotiation the server picks a variant from request headers such as Accept-Language. In agent-driven negotiation the client and server choose together. MDN notes that agent-driven negotiation is rarely used, and that server-driven negotiation, where the server picks from request headers, is far more common.
On Apache the 506 comes from mod_negotiation, which defines it as HTTP_VARIANT_ALSO_VARIES. Nothing on the visitor's side causes it, so the fix is always in the server's variant files or type maps.
Reproduce it on Apache and read the response
page.var is a type map whose French variant is itself another type map, page.fr.var.AddHandler type-map .var
AddLanguage en .en
AddLanguage fr .fr
<Directory "/var/www/html">
Options MultiViews
</Directory>URI: page.en
Content-type: text/html
Content-language: en
URI: page.fr.var
Content-type: text/html
Content-language: frfor l in en fr de; do
printf "%s -> " "$l"
curl -s -i -H "Accept-Language: $l" http://127.0.0.1/page.var | head -1
done
# en -> HTTP/1.1 200 OK
# fr -> HTTP/1.1 506 Variant Also Negotiates
# de -> HTTP/1.1 406 Not Acceptable| Accept-Language sent | Variant Apache chose | Status |
|---|---|---|
en | page.en, a plain file | 200 OK |
fr | page.fr.var, a nested type map | 506 Variant Also Negotiates |
de | None listed for German | 406 Not Acceptable |
Only the request that selects the nested map fails. Apache's source comments explain why: when a transparent type map selects another type map as the best variant, it returns HTTP_VARIANT_ALSO_VARIES, because recursive type maps produce a recursive arrangement of negotiated resources that the negotiation protocols do not support. The generated error page says the variant "is itself a negotiable resource" and "indicates a configuration error".
Fix it
- 1
Find the nested map
Open the type map the request resolves to and look for
URI:lines that end in.varor point at a MultiViews resource. - 2
Flatten it
List each language or format as a direct file in the first map, as above. In the same test, the flat map answered 200 for
en,frandde. - 3
Retest every variant
Run the
forloop above for eachAccept-LanguageandAcceptcombination your site serves, and confirm none returns 506. - 4
Check the error log
Raise
LogLevelformod_negotiationwhile you test (for exampleLogLevel info negotiation:debug) if a variant still fails.
URI: page.en
Content-type: text/html
Content-language: en
URI: page.fr.html
Content-type: text/html
Content-language: fr
URI: page.de.html
Content-type: text/html
Content-language: de- You list variants by hand and want each URL to resolve to one file.
- You need `Content-language` or `Content-type` set per file.
- You want negotiation without the filename rules of MultiViews.
- Your files follow `name.lang.ext` naming and you want Apache to find variants itself.
- You do not need per-variant quality values (`qs`) in a hand-written map.
- You can enable `Options MultiViews` for that directory.
What a 506 does to SEO
Accept-Language, a crawler's request headers can select a different variant than your browser does. Test each variant with curl and the headers it would send. For crawl-level effects see 5xx server errors, and for neighbouring server errors 500 and 501.Asked a lot.
4 questions people ask next, answered from the sources on this page.
01What does 506 Variant Also Negotiates mean?
The server is misconfigured: the variant it picked for the request is itself configured to do transparent content negotiation, so it cannot be the end point of the negotiation. RFC 2295 defines it as an internal configuration error.
02Can I fix a 506 as a visitor?
No. It is a server configuration error. A different language setting in the browser may select a different variant, but the site owner has to fix the configuration.
03Why does the 506 only happen for some languages?
Only the request that selects the faulty variant fails. In an Apache 2.4.62 test, a type map with a nested type map returned 200 for English and 506 for French, because the French variant was the nested map.
04Does nginx send 506?
This page documents the Apache cause. nginx's documentation does not describe a 506 case, so check the response body and the Server header to see what produced it before changing configuration.
Every fact, linked and dated.
rfc-editor.org
mozilla.org
apache.org
github.com
google.com
- 01RFC 2295: Transparent Content Negotiation in HTTPrfc-editor.org · checked 2026-11-01
- 02MDN: 506 Variant Also Negotiatesdeveloper.mozilla.org · checked 2026-11-01
- 03Apache httpd: Content Negotiationhttpd.apache.org · checked 2026-11-01
- 04Apache httpd: mod_negotiationhttpd.apache.org · checked 2026-11-01
- 05Apache httpd source: modules/mappers/mod_negotiation.cgithub.com · checked 2026-11-01
- 06How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-11-01
Keep learning
All errorsTools point. Agencies advise. This one ships.
Run the free audit, then approve the fixes. Every change can be undone.
- 46 fixes shipped without a ticket Brightpipe
- 0→7 ChatGPT citations in six weeks Paylane