Weave Code
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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor