PHP code example of gkimball / php301mapper

1. Go to this page and download the library: Download gkimball/php301mapper 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/ */

    

gkimball / php301mapper example snippets


$redirects = [
    '/index.php?page1OLD' => '/index.php?page1NEW',
    '/index.php?page2OLD' => '/index.php?page2NEW',
    '/index.php?page3OLD' => '/index.php?page2NEW',
];

MapFactory::Mapper($_SERVER['REQUEST_URI'],$redirects)->run();