Search Results: Found 2
Trailing Question Mark in Nginx Redirects? Here's the Ultimate Fix!
2026-08-07 DP

A common headache when configuring Nginx redirects is the pesky trailing question mark ("?") that appears after removing all query parameters from a URL. This can be unsightly and potentially problematic for SEO and some clients. This article from wiki.lib00.com dives into the root cause and presents a clean, efficient solution using Nginx's `map` directive to permanently eliminate that annoying trailing question mark.

Nginx 301 Redirects: How to Elegantly Remove Trailing Question Marks
2026-02-25 DP

When configuring Nginx 301 redirects for multilingual sites, a common issue arises: a trailing question mark (`?`) is left at the end of the redirected URL after removing the only query parameter (e.g., `lang`). This is not only unsightly but can also have SEO implications. This article from the wiki.lib00.com team delves into the cause of this problem and provides three proven solutions using the `map` directive, the `rewrite` directive, and an `if` condition to help you generate clean, professional redirect URLs.