Ok I created my first web application with Flutter, setup SSL and have a domain with two flavours.
https://example.com setup on IIS.
How can I redirect http
to https
with Flutter?
I could create Url rewrite server side but I would love to do via Flutter.
Is there such a configuration available?
2
Answers
Since the server is IIS I a added the following
web.config
to handle thehttps
redirection by using the Rewrite ModuleThe SSL redirection should be setup on your DNS and Hosting service rather than in Flutter web implementation or any Web implementation for that matter. Please check with your DNS provider and Hosting provider on SSL certificate installation and enabling SSL redirection.