Make redirections support query strings
See original GitHub issueI’ve been using version 6.5.8 and I was able to serve URLs with query string, example: http://localhost:5000/code.html?26482
The query string "?26482"
is missing a parameter name, and that’s intentional because it’s the only way it works.
Adding the parameter causes it to serve without the query string, try: http://localhost:5000/code.html?id=26482 for instance.
When updated to version 7, none of this works (with parameter and without parameter).
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Learn about .htaccess 301 Redirect for URLs with a query ...
Learn how to write a basic 301 redirect for a URL with a query string.
Read more >How to redirect URLs based on query string?
I made sure that my Redirect rule is at the top of the list in my .htaccess so it will be evaluated first....
Read more >Redirect Query String via .htaccess
In general, redirecting URLs is a piece of cake with Apache's .htaccess. The only trick is redirecting based on the URL's query-string value ......
Read more >How do you redirect URLs with a query string to another ...
This will redirect ALL requests from myhost.com to alt.myhost.com RewriteCond %{HTTP_HOST} !^alt\.myhost\.com [NC] RewriteCond %{HTTP_HOST} ...
Read more >Using Query Parameters With Redirects
Query Parameter Settings for all Redirects ... If you want to set the default for Query Parameters for all redirects, then start by...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bidiu What is the status of this? With the official way of redirecting www to root domain (https://zeit.co/guides/redirect-from-www/) I have the issue that query params are not taken into account. It is removing the query params.
@warren-bank are you interested in merging some of these features back upstream? 🙏