Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 404 error when using query parameters #50

Closed
yantakus opened this issue Jul 16, 2015 · 2 comments
Closed

Getting 404 error when using query parameters #50

yantakus opened this issue Jul 16, 2015 · 2 comments

Comments

@yantakus
Copy link

I'm using the following configuration:

gulp.task('browser-sync', function () {
  browserSync({
    port: 8000,
    open: false,
    minify: false,
    host: "127.0.0.1",
    server: {
      baseDir: ["app", ".tmp"],
      middleware: [
        modRewrite([
          '^[^\\.]*$ /index.html [L]'
        ])
      ]
    }
  });
});

It works fine, but when I open a URL with query parameters, for ex. http://localhost:8000/change-password?passwordResetToken=abc, I get the 404 error.

@tinganho
Copy link
Owner

I can't reproduce this problem. FYI connect-modrewrite preserves the query params in the query object. PLease check your server if there is something wrong.

@tinganho
Copy link
Owner

Sorry for misguiding you. connect-modrewrite doesn't preserver query parameters. But please check whatever server you have. Because I doubled check that the current version rewrites to the right url index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants