PHP code example of ublaboo / https-redirect-nette-extension

1. Go to this page and download the library: Download ublaboo/https-redirect-nette-extension library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ublaboo / https-redirect-nette-extension example snippets


extensions:
	httpsRedirect: Ublaboo\HttpsRedirectNetteExtension\DI\HttpsRedirectNetteExtension

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