How do I redirect http://www.site.com to site.com with 301 in meteorjs.
I normally use express but we don’t have that in meteor.
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.
If you look in packages/accounts-oauth-helper/oauth_server.js you’ll find an example of how make the server listen on HTTP:
Instead of spawing a Fiber and calling into the OAuth middleware logic, you can check
req.urland either set HTTP headers withres.writeHeadand callres.end(), or continue into the usual Meteor stack withnext().