ublaboo / https-redirect-nette-extension
Nette extension for simply redirecting user to the same url with different schema
Installs: 3 824
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- nette/di: ^2.3|^2.4
- nette/http: ^2.3|^2.4
This package is auto-updated.
Last update: 2024-12-21 01:32:17 UTC
README
HttpsRedirectNetteExtension
1, Install via composer
composer require ublaboo/https-redirect-nette-extension
2, Register extension in config.neon
:
extensions: httpsRedirect: Ublaboo\HttpsRedirectNetteExtension\DI\HttpsRedirectNetteExtension
3, Tell which presenters shoul be secured (in case no presenter name given, all presenters are secured). Format - Module:Module:Presenter
:
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