Last active
September 21, 2024 16:03
-
-
Save br4instormer/d2f6155c13560b96f4e3f68016ef3392 to your computer and use it in GitHub Desktop.
Nginx rewrite rule. Redirect with no query if querystring is matched
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| # replace query string is query fits | |
| if ($request_uri ~ "limit=24&start=0") { | |
| rewrite ^(.*) $1? permanent; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment