wozbe/redirect-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  1. Download WozbeRedirectBundle using composer
  2. Enable the Bundle
  3. 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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD
  • 更新时间: 2013-10-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固