question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make redirections support query strings

See original GitHub issue

I’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:open
  • Created 5 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
andi1984commented, Jun 19, 2019

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

0reactions
leerobcommented, Jul 6, 2022

@warren-bank are you interested in merging some of these features back upstream? 🙏

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found