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.

How to add catch all redirect?

See original GitHub issue

I need something like this

app.get("*", callback)

so every request url will be redirected to index.html. but since this package not using express, I don’t know how to solve this.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
houston3commented, Oct 23, 2017

-P http://localhost:8080/? worked for me. Note the question mark at the end.

7reactions
thornjadcommented, Feb 5, 2019

The -P http://localhost:8080? method is rather brilliant, and I think that may be the answer here, since your index.html is essentially acting as the proxy for all other pages.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Catch all redirect - htaccess - Stack Overflow
I'm wanting to add a catch-all 301 redirect RewriteRule. This is not working. Any ideas? RewriteRule ^/(.*)$1 http://www.domain.co.uk/ ...
Read more >
SEO: Catchall Redirects Are a Bad Practice
At first glance a catchall redirect page seems like a good solution. Instead of fixing thousands or tens of thousands of redirect errors, ......
Read more >
How to set up a catch-all (wildcard) email address - Namecheap
Scroll down to the Redirect Email section and click on the Add catch all button: 4. Enter the destination email address in the...
Read more >
Catch-all Redirect with exceptions - MSDN - Microsoft
User118430422 posted. I am trying to implement a set of redirect rules for a number of URLs within a domain to specific URLs...
Read more >
How to create a redirect or a catch-all - Netim Support
Log in to your Netim Direct account · Click on the “Emails” menu and then on “My emails” · Then click on “Create...
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