1, Install via composer
composer require ublaboo/https-redirect-nette-extension
2, Register extension in
extensions: httpsRedirect: Ublaboo\HttpsRedirectNetteExtension\DI\HttpsRedirectNetteExtension
3, Tell which presenters shoul be secured (in case no presenter name given, all presenters are secured). Format -
httpsRedirect: redirectTo: https # Set ot "http" for redirecting from https to http redirectCode: 301 # Change it to any other code you want, enable: true # or false :P
No release at this moment. Try to create first one.