-
Notifications
You must be signed in to change notification settings - Fork 97
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
force internationalization #54
Comments
Hey, i'm not sure i get your point. If you need to force SSL for all paths, just use Rack::SslEnforcer without any additional parameters. If you want to force SSL for e.g. /:locale/blog and /:locale/users use something like this:
HTH |
Thank you very much! that is working fine. However I'm using this gem https://github.com/tylerhunt/rack-canonical-host for redirect al requests from So, If I write in browser url: How can redirect all request from Thank you very much again! |
/edit: forget about this. Could you point pout which paths you need to secure and what your current constraints look like? |
Thank you @tobmatth, I have uninstalled
and I have the same problem :(. If I write in browser url: However if I write in browser url How can I redirect all Thank you very much for your help! |
Hi @hyperrjas, you can simply use: config.middleware.use Rack::SslEnforcer and every HTTP requests will be redirected to HTTPS. Also, you should put |
Closing this due to non-response. Feel free to re-open if your issue is not resolved. Thanks! |
routes.rb
I have languages:
en, es, ar, de...etc
, and urls:How force to https all urls with this locales and specify an action or a controller?
Thank you!
The text was updated successfully, but these errors were encountered: