PHPackages                             skonsoft/redirector-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. skonsoft/redirector-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

skonsoft/redirector-bundle
==========================

A symfony2 bundle used to redirect a list of specified URLs

0131

Since Jun 29Pushed 12y ago1 watchersCompare

[ Source](https://github.com/skonsoft/redirector-bundle)[ Packagist](https://packagist.org/packages/skonsoft/redirector-bundle)[ RSS](/packages/skonsoft-redirector-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple HTTP Redirector
======================

[](#simple-http-redirector)

What is it ?
------------

[](#what-is-it-)

It's a small bundle but with great functionnalities, it redirects your incoming urls from old pages to new's one. You need just to write your conf redirection file in yaml format like:

```
#app/config/redirected_urls.yml

url1:
    from: "/first-url-to-redirect" #required
    to: "/redirect-destination"    #required
    http_code: 301         #optionnal
    host: http:/www.my-new-website.com  #optionnal
url2:
    from: "/articles/1220"
    to: "/articles/how-to-write-a-redirected-file.html" #SEO optimization
    http_code: 302

```

### Step 1: Install bundle using composer

[](#step-1-install-bundle-using-composer)

```
{
    "require": {
        // ...
        "skonsoft/redirector-bundle": "dev-master"
    }
}
```

### Step 2: Register the bundle

[](#step-2-register-the-bundle)

```
