I want to route root route (http://server:5000/) in my node.js express.js application:
When I go to http://server:5000/ I get:
Redirecting to //
I get the same message if I have a route:
app.get(‘/’, routes.index);
What can be the problem?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This was a bug in Windows with Connect: https://github.com/senchalabs/connect/issues/427
You should update or set the redirect option to false in the Connect static middleware.