PHP code example of bavix / laravel-middleware-ifindex
1. Go to this page and download the library: Download bavix/laravel-middleware-ifindex 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/ */
bavix / laravel-middleware-ifindex example snippets
Bavix\Providers\IfIndexProvider::class,
http://example/index.php -> 301, http://example/
http://example/index.php/en -> 301, http://example/en
http://example/index.php/en?query -> 301, http://example/en?query