gkimball/php301mapper
Composer 安装命令:
composer create-project gkimball/php301mapper
包简介
Maps an array of key val pairs to 301 redirects
README 文档
README
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
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-02-22