wozbe/redirect-bundle
Composer 安装命令:
composer require wozbe/redirect-bundle
包简介
Symfony Bundle to manage domains
关键字:
README 文档
README
You have many domains :
Users have to be redirect to http://john-doe.fr/example from http://www.john-doe.fr/example
Installation
Installation is a quick 3 step process:
- Download WozbeRedirectBundle using composer
- Enable the Bundle
- Configure your application's config.yml
Step 1: Download WozbeRedirectBundle using composer
Add WozbeRedirectBundle in your composer.json:
{ "require": { "wozbe/redirect-bundle": "*" } }
Now tell composer to download the bundle by running the command:
$ php composer.phar update wozbe/redirect-bundle
Composer will install the bundle to your project's vendor/wozbe directory.
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Wozbe\RedirectBundle\WozbeRedirectBundle(), ); }
Step 3: Configure your application's config.yml
Finally, add the following to your config.yml
# app/config/config.yml wozbe_redirect: domains: john-doe.fr: aliases: - www.john-doe.fr - www.johndoe.fr - johndoe.fr foo-bar.fr: aliases: - www.foo-bar.fr - www.foobar.fr - foobar.fr
======= A short bundle to manage many domains
统计信息
- 总下载量: 386
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD
- 更新时间: 2013-10-15