Ffile2fix
Sign in Get started

How to fix "414 Request-URI Too Long"

414 Request-URI Too Large

A 414 means the requested URL, including its query string, is longer than the server is willing to read. Default limits are about 8 KB, so hitting them usually means data that belongs in a request body is being stuffed into the URL.

Also appears as: Request-URI Too Long. The requested URL's length exceeds the capacity limit for this server. · 414 URI Too Long · HTTP Error 414. The request URL is too long. · 414 Request-URI Too Large nginx

Common causes

  • A GET form or AJAX call sending large data (long filter lists, base64 strings, serialized arrays) in the query string
  • A redirect loop that appends parameters to the URL on every hop until it overflows
  • Tracking or analytics parameters repeatedly added by a plugin or link wrapper
  • Faceted search or filter plugins building very long URLs with many selected options
  • Apache LimitRequestLine (default 8190 bytes) or Nginx large_client_header_buffers (default 4 8k) reached

How to fix it

  1. Look at the actual URL. Copy the failing URL from the browser or access log. If you see the same parameter repeated many times or redirect= nested inside itself, you have a redirect loop, not a size problem.
  2. Switch large requests to POST. Change the form's method to POST or send the data as a JSON body in fetch/axios. Request bodies are limited by different (much larger) settings than URLs.
  3. Fix redirect rules that append parameters. Check .htaccess and redirect plugins for rules that use QSA or append ?redirect_to= on every pass. Make sure the rule stops once it has applied.
  4. Shorten filter URLs. Store long filter selections server-side or in a short ID, or use comma-separated IDs instead of repeated parameter names.
  5. Raise the limit only if needed. On a VPS set LimitRequestLine in Apache or large_client_header_buffers in Nginx. Keep URLs under about 2,000 characters for compatibility with browsers, proxies and CDNs.

Apache / Nginx (raise URL limit, VPS only)

# Apache 2.4 (server or vhost config, not .htaccess)
LimitRequestLine 16380
LimitRequestFieldSize 16380

# Nginx (http or server block)
large_client_header_buffers 4 16k;

How to stop it happening again

  • Use POST for anything that carries user-generated or bulk data
  • Test redirect rules for loops with a redirect checker
  • Keep public URLs short and readable for SEO as well as limits

Frequently asked questions

What is the maximum URL length?

There is no single standard limit. Apache allows about 8 KB per request line by default and Nginx about 8 KB per header buffer; keeping URLs under 2,000 characters is the safe practical limit.

Can I raise LimitRequestLine in .htaccess?

No. It is only valid in the main server or virtual host config, so on shared hosting you need to change the request instead or ask your host.

Why does a 414 appear after logging in?

Login flows often carry a redirect_to parameter. If a misconfigured redirect keeps wrapping the URL inside itself, it grows until the server rejects it.