# 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.

Canonical: https://scaplet.com/errors/http/506

Guide Error · HTTP status codes

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.

4 min

read

6

sources

Nov 1, 2026

updated

Scaplet Editorial Team

author

506 5xx · Server error

Defined in

RFC 2295 (Experimental), section 8.1

Class

5xx server error

Who causes it

The server configuration, never the visitor

The short answer

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.

1. [What the 506 status means](#what-the-506-status-means)
2. [Reproduce it on Apache and read the response](#reproduce-it-on-apache-and-read-the-response)
3. [Fix it](#fix-it)
4. [What a 506 does to SEO](#what-a-506-does-to-seo)

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F506%20(%22506%20Variant%20Also%20Negotiates%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F506%20(%22506%20Variant%20Also%20Negotiates%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F506%20(%22506%20Variant%20Also%20Negotiates%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F506%20(%22506%20Variant%20Also%20Negotiates%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

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

_01_Explained

## What the 506 status means

RFC 2295 (Transparent Content Negotiation in HTTP, an Experimental RFC) defines it: the 506 [status code](/glossary/http-status-codes) 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.

_02_Fix it on your stack

## Reproduce it on Apache and read the response

This setup was run on Apache 2.4.62 on 2026-11-01. `page.var` is a type map whose French variant is itself another type map, `page.fr.var`.

httpd.conf (relevant lines)
httpd.conf (relevant lines)

```
AddHandler type-map .var AddLanguage en .en AddLanguage fr .fr <Directory "/var/www/html"> Options MultiViews </Directory>
```

page.var: the broken map (a variant that is a type map)
page.var: the broken map (a variant that is a type map)

```
URI: page.en Content-type: text/html Content-language: en URI: page.fr.var Content-type: text/html Content-language: fr
```

Ask for each language and print the status line
Ask for each language and print the status line

```
for 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
```

What each request got in the test
| 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](/errors/http/406) |

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".

**It depends on the visitor's language**The same URL returns 200 for one `Accept-Language` and 506 for another. If a bug report says "only some users see a 506", test each language and format your variants cover.

_03_How it works

## Fix it

1. 1

### Find the nested map

Open the type map the request resolves to and look for `URI:` lines that end in `.var` or point at a MultiViews resource.
2. 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`, `fr` and `de`.
3. 3

### Retest every variant

Run the `for` loop above for each `Accept-Language` and `Accept` combination your site serves, and confirm none returns 506.
4. 4

### Check the error log

Raise `LogLevel` for `mod_negotiation` while you test (for example `LogLevel info negotiation:debug`) if a variant still fails.

page.var: the fixed map, every variant listed once with a plain file

```
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
```

Use one flat type map if
- 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.

Use MultiViews if
- 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.

_04_Explained

## What a 506 does to SEO

A 506 is a 5xx. Google's guide covers 5xx as a class: 5xx and 429 errors prompt crawlers to temporarily slow down, indexed URLs are preserved but eventually dropped, and content from a 5xx response is ignored. If your site negotiates on `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](/seo-issues/server-errors-5xx), and for neighbouring server errors [500](/errors/http/500) and [501](/errors/http/501).

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ What 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.

_02_ Can 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.

_03_ Why 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.

_04_ Does 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.

Sources · 6

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- rfc-editor.org
- mozilla.org
- apache.org
- github.com
- google.com

1. 01 [RFC 2295: Transparent Content Negotiation in HTTP](https://www.rfc-editor.org/rfc/rfc2295.html) rfc-editor.org · checked 2026-11-01
2. 02 [MDN: 506 Variant Also Negotiates](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/506) developer.mozilla.org · checked 2026-11-01
3. 03 [Apache httpd: Content Negotiation](https://httpd.apache.org/docs/2.4/content-negotiation.html) httpd.apache.org · checked 2026-11-01
4. 04 [Apache httpd: mod_negotiation](https://httpd.apache.org/docs/2.4/mod/mod_negotiation.html) httpd.apache.org · checked 2026-11-01
5. 05 [Apache httpd source: modules/mappers/mod_negotiation.c](https://github.com/apache/httpd/blob/trunk/modules/mappers/mod_negotiation.c) github.com · checked 2026-11-01
6. 06 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-11-01

## Keep learning

[All errors](/errors)

[Learn 505 HTTP Version Not Supported HTTP status codes](/errors/http/505) [Related 406 Not Acceptable HTTP status codes](/errors/http/406) [Read next HTTP 500 Internal Server Error HTTP status codes](/errors/http/500) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in errors
[504 Gateway Time-out in nginx](/errors/http/504/nginx)

More in HTTP status codes
[422 Unprocessable Content (Unprocessable Entity)](/errors/http/422) [423 Locked](/errors/http/423) [424 Failed Dependency](/errors/http/424) [425 Too Early](/errors/http/425) [426 Upgrade Required](/errors/http/426) [428 Precondition Required](/errors/http/428) [429 Too Many Requests](/errors/http/429) [451 Unavailable For Legal Reasons](/errors/http/451) [502 Bad Gateway](/errors/http/502) [503 Service Unavailable](/errors/http/503) [504 Gateway Timeout](/errors/http/504) [505 HTTP Version Not Supported](/errors/http/505) [506 Variant Also Negotiates](/errors/http/506) [507 Insufficient Storage](/errors/http/507) [508 Loop Detected](/errors/http/508) [510 Not Extended](/errors/http/510) [511 Network Authentication Required](/errors/http/511) [5xx errors](/errors/http/5xx-errors) [HTTP 200 OK](/errors/http/200) [HTTP 201 Created](/errors/http/201) [HTTP 204 No Content](/errors/http/204) [HTTP 206 Partial Content](/errors/http/206) [HTTP 301 Moved Permanently](/errors/http/301) [HTTP 302 Found](/errors/http/302)

Terms on this page
[HTTP status codes](/glossary/http-status-codes)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
