2017 © Pedro Peláez
 

symfony-bundle redirect-bundle

Symfony Bundle to manage domains

image

wozbe/redirect-bundle

Symfony Bundle to manage domains

  • Friday, December 20, 2013
  • by armetiz
  • Repository
  • 2 Watchers
  • 5 Stars
  • 373 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

WozbeRedirectBundle

You have many domains : * http://www.john-doe.fr * http://www.johndoe.fr * http://john-doe.fr * http://johndoe.fr, (*1)

Users have to be redirect to http://john-doe.fr/example from http://www.john-doe.fr/example, (*2)

Installation

Installation is a quick 3 step process:, (*3)

  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:, (*4)

{
    "require": {
        "wozbe/redirect-bundle": "*"
    }
}

Now tell composer to download the bundle by running the command:, (*5)

``` bash $ php composer.phar update wozbe/redirect-bundle, (*6)


Composer will install the bundle to your project's `vendor/wozbe` directory. ### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php <?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, (*7)

``` yaml, (*8)

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, (*9)

```

A short bundle to manage many domains, (*10)

The Versions

20/12 2013

dev-master

9999999-dev http://www.wozbe.com

Symfony Bundle to manage domains

  Sources   Download

BSD

The Requires

 

domain redirect forward tld

15/10 2013

1.1.1

1.1.1.0 http://www.wozbe.com

Symfony Bundle to manage domains

  Sources   Download

BSD

The Requires

 

domain redirect tld

15/10 2013

1.1.0

1.1.0.0 http://www.wozbe.info

Symfony Bundle to manage domains

  Sources   Download

BSD

The Requires

 

domain redirect tld

12/10 2012

1.0.0

1.0.0.0 http://www.armetiz.info

Symfony Bundle to manage domains

  Sources   Download

BSD

The Requires

 

domain redirect tld