Skip to content

Takes an array of obsolete URLS and maps them to the current urls. Useful for URLs that are aliased to a given domain, but the page doesn't exist.

Notifications You must be signed in to change notification settings

yourlocalwebmaster/301Mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Include the Php301Mapper class to your header file. Add the following to the top of your 404 loader page.

$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();

Dev Installation

composer install

About

Takes an array of obsolete URLS and maps them to the current urls. Useful for URLs that are aliased to a given domain, but the page doesn't exist.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages