Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Redirect Bundle Laravel Package

armetiz/redirect-bundle

View on GitHub
Deep Wiki
Context7

WozbeRedirectBundle

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

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style